Is this page helpful?
YesNoLast Updated on : 2022-03-01 07:55:00download
This topic describes how to build a development environment for panel SDK development. Before panel SDK development, you need to install NVM and Yarn. For macOS, you also need to install Homebrew and Watchman.
The following editors are recommended for panel SDK development. Download and install as needed.
Note: If this is your first installation, set up the environment variable as per the instruction.
Open the terminal.
Install the Node Version Manager (NVM).
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash
(Optional) Enter nvm -v
to confirm proper NVM installation.
Note: If the version number is indicated, the installation is successful. If the error
nvm: command not found
occurs, refer to the FAQ section at the bottom.
Enter nvm install 10.15.0
to install Node.js 10.15.0.
Note: It is recommended to install Node.js 10.15.0 or a later version.
(Optional) You can switch to a specified Node.js version through the nvm use
command.
nvm use 10.15.0
Open the terminal.
Enter npm install -g yarn
to install Yarn.
(Optional) Enter yarn -v
to confirm proper Yarn installation.
Note: This step is only for macOS.
Open the terminal.
Enter the following command to install Homebrew.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Enter brew install watchman
to install Watchman.
Q: Why do I get the error message nvm: command not found
when I enter nvm -v
?
A: The path where NVM is stored might not be set as an environment variable. You can follow the following steps:
Open the terminal.
Enter cd ~
to enter the current home directory.
Enter the following command to open the configuration file.
Linux, Windows and other systems
open .bash_profile
New macOS
open .zshrc
Copy the following code to the configuration file and save the file.
export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
Enter source .bash_profile
or source .zshrc
to reload the configuration file.
Enter nvm -v
to check the NVM version and verify whether the installation is successful.
Q: Why cannot I install Homebrew on my macOS?
A: If you do not install Xcode Command Line Tool on your macOS, the Homebrew installation might fail.
Solution 1: Install Xcode.
Solution 2: Use the command to install online.
cd ~
to enter the current home directory.xcode-select --install
to install Xcode Command Line Tool.During the process of installing or running RN, if an error message occurs, you can refer to the documentation about common errors in the RN community.
Is this page helpful?
YesNoIs this page helpful?
YesNo