1.安装 HomeBrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.用HomeBrew 来安装 node ,watchman 和flow
3.使用命令 brew install node
4.brew install -HEAD watchman
5.npm install -g react-native-cli
环境集成完毕后:react-native init AwesomeProject