设置npm镜像 React Native 环境搭建

安装完node后建议设置npm镜像以加速后面的过程(或使用科学上网工具)。注意:不要使用cnpm!cnpm安装的模块路径比较奇怪,packager不能正常识别!

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

react native 环境搭建
https://github.com/reactnativecn/react-native.cn/blob/stable/docs/docs/0.51/getting-started.md

猜你喜欢

转载自blog.csdn.net/gocuber/article/details/80252415