Windows搭建React-native开发环境

基于Android开发环境

1、安装Git,打开Git CMD 执行命令

npm config set registry https://registry.npm.taobao.orgnpm 
npm config set disturl https://npm.taobao.org/dist

2、安装node.js

3、安装Python

安装的时候记得选择add to path,没有选就安装完后把安装路径添加到PATH路径下

4、从giyhub下载react-native

地址:https://github.com/facebook/react-native 并解压

5、安装react-native

打开Git CMD ,进入到react-native解压目录下的react-native-cli目录执行:npm install -g react-native-cli

6、完成上一步后可以写第一个测试程序

进入到你要创建项目的目录执行:react-native init 项目名称

如果报错,自行百度

猜你喜欢

转载自blog.csdn.net/dong923700243/article/details/78989156