尝试react-native-cli
安装
npm install -g react-native-cli
导致此错误:
npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/kamleshtilwani/.nvm/versions/node/v8.6.0/bin/node" "/Users/kamleshtilwani/.nvm/versions/node/v8.6.0/bin/npm" "install" "-g" "react-native-cli"
npm ERR! node v8.6.0
npm ERR! npm v3.4.1
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'internal/errors'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/kamleshtilwani/npm-debug.log