##mac安装React Native过程中出现的问题
- brew install watchman 执行错误
Warning:You are using OS X 10.11.We do not provide support for this pre-release version.
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
Error: Could not create /usr/local/Cellar
Check you have permission to write to /usr/local
解决办法参考:http://superuser.com/questions/940874/homebrew-doesnt-install-new-apps-in-el-capitan
- npm install -g react-native-cli 执行错误
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
解决办法: 没有权限。在命令前面加上sudo,第一次不成功多尝试几次。
- build facebook demo-- AwesomeProject出错
Error building DependencyGraph:
TypeError: Cannot read property 'root' of null
at index.js:16:60
at tryCallOne (/Users/yixiaoluo/AwesomeProject/node_modules/promise/lib/core.js:37:12)
at /Users/yixiaoluo/AwesomeProject/node_modules/promise/lib/core.js:123:15
at flush (/Users/yixiaoluo/AwesomeProject/node_modules/asap/raw.js:50:29)
at nextTickCallbackWith0Args (node.js:453:9)
at process._tickCallback (node.js:382:13)
解决办法: 执行命令brew reinstall watchman,重新安装watchman
##参考