标签:
Mac上使用react native tips:
1. 安装Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. 安装nvm 和 node
nvm:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
export NVM_DIR="/Users/liujunmei/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
nvm
node
nvm install node && nvm alias default node
node
3. 安装watchman 和 flow
brew install watchman
brew install flow
brew update && brew upgrade
4. 创建hello world
npm install -g react-native-cli
react-native init AwesomeProject
标签:
原文地址:http://www.cnblogs.com/qiangxia/p/5243656.html