01-react安装及初始化项目

1.install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

 

brew install node

 

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

 

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

 

npm install -g react-native-cli


2.init
react-native init xx --version 0.41.0

 xocde preferences  location command line tools  select 1

cd xx

react-native run-ios

 

 

 

 

posted @ 2019-07-31 10:04  贾梦阳1024  阅读(103)  评论(0编辑  收藏  举报