安装Node.js
https://nodejs.org/dist/v10.13.0/node-v10.13.0-x64.msi
包含node.js tools , 会自动安装 .net 4.5
安装JDK
jdk-8u151-windows-x64.exe必须设置JAVA_HOME
设置Node
npm config set registry https://registry.npm.taobao.org –global
npm config set disturl https://npm.taobao.org/dist –global
安装Yarn
https://github.com/yarnpkg/yarn/releases/download/v1.9.4/yarn-1.9.4.msi
设置yarn
yarn config set registry https://registry.npm.taobao.org –global
yarn config set disturl https://npm.taobao.org/dist –global
安装 react native cli
npm install -g react-native-cli
安装android studio
安装完毕后,设置 ANDROID_HOME 为
C:\Users\zxq\AppData\Local\Android\Sdk
将andoird home的platform-tools 目录加入到 PATH里
输入adb 测试一下
网友评论