Installation method is almost the same as react native Chinese network, in fact, referring to the installation of the site ~
1, installation Chocolatey,cmd execution:
@powershell-noprofile-executionpolicy Bypass-command "IEX (New-object net.webclient). Downloadstring (' Https://chocolatey.org/install.ps1 ')) "&& SET path=%path%;%allusersprofile%\chocolatey\ Bin
Verify that the installation is successful, see if the system variable has chocolateyinstall, and then prove that the installation was successful.
2. Install Python 2 (Python3 version is currently not supported)
Choco Install Python2
3. Install node
Choco Install Nodejs.install
After you install node, set up NPM mirroring acceleration:
npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global
4. Install yarn and set up mirroring acceleration
NPM install-g Yarn
yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global
5, Installation React-native-cli
NPM install-g REACT-NATIVE-CLI
6, Installation Jdk8
Choco Install Jdk8
Configure Java Environment variables: (System variables)
- New java_home variable, variable value fill in the JDK installation directory (e.g. C:\Program files\java\jdk1.8.0_144)
- Look for the PATH variable, enter%java_home%\bin;%java_home%\jre\bin at the end of the variable value, (notice that the value of the variable at the end of the path is not there; number, if not, enter first;)
- New CLASSPATH variable, variable value filled in.; %java_home%\lib;%java_home%\lib\tools.jar (Note that there is a point in the front)
- CMD input: Javac-version Verify Success
7. Download Android Studio
In view of the national conditions, can be downloaded to the Android Studio Chinese network: http://www.android-studio.org/, but I am sad is the waiting time 96 hours, a whole weekend will not finish ... Firmly post the link: Https://pan.baidu.com/s/1eSnIJLK Password: F5UV
Because the file is too large, the drive letter is full of this end ...
Install React native Environment under window