react native environment construction notes

download

JDK 11

Edit the environment variable, increase JAVA_HOMEthe path where jdk is located, and add Path%JAVA_HOME%\bin

Node.js

https://nodejs.org/en/download/

After installing Node, it is recommended to set up npm mirroring (Taobao source)

Configure Mirror
http://npm.taobao.org => http://npmmirror.com
http://registry.npm.taobao.org => http://registry.npmmirror.com

当次使用镜像
 npm install --registry=http://registry.npmmirror.com  
 全局使用镜像
npm config set registry http://registry.npmmirror.com
恢复官方
 npm config set registry https://registry.npmjs.org

Test whether the configuration is successful

npm config get registry

Android Studio

Edit the system environment variable to add the ANDROID_HOMEconfiguration sdk directory,

add the following

%ANDROID_SDK_ROOT%\platform-tools
%ANDROID_SDK_ROOT%\emulator
%ANDROID_SDK

Guess you like

Origin blog.csdn.net/aikongmeng/article/details/128816358