Windows environment configuration for React-Native learning

Windows environment configuration for React-Native learning

Install Java

  1. Download JDK and choose your own model; official website address: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
  2. To configure the environment, ask Du Niang: http://jingyan.baidu.com/article/f96699bb8b38e0894e3c1bef.html

Download and install Android SDK

  1. 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

  1. Download node.js from the official website
  2. 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

  1. Download WebStorm from the official website
  2. 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)
  3. After the installation is complete, switch to the Activation Code option during registration and enter the obtained verification code

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325544289&siteId=291194637