Windows environment configuration for React-Native learning
Install Java
- Download JDK and choose your own model; official website address: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- To configure the environment, ask Du Niang: http://jingyan.baidu.com/article/f96699bb8b38e0894e3c1bef.html
Download and install Android SDK
- Download SDK Tools directly, then install the environment required for react-native to run through SDKManager, and pay attention to choose x64 or x86.
Official website download address: https://developer.android.com/sdk/installing/index.html
Domestic download address: http://androiddevtools.cn/
Install NodeJS
- Download node.js from the official website
- You can use the node -v command to test whether NodeJS is installed successfully (the new version of NodeJs includes npm, which can be checked by the npm -v command)
Install react-native command line tools
Enter the following command in the cmd window
npm install -g react-native-cli
If the network does not work, it is recommended to use Taobao mirror:
npm config set registry https://registry.npm.taobao.org
Install WebStorm
- Download WebStorm from the official website
- Open the http://idea.lanyus.com/ page to get the "registration code" (the registration code is valid from October 15, 2017 to October 14, 2018)
- After the installation is complete, switch to the Activation Code option during registration and enter the obtained verification code