npm在react-native-cli安装上返回module_not_found

时间:2017-06-22 07:32:04

标签: node.js react-native npm command-line-interface

我刚刚将我的mac pro升级到Sierra,现在我正在尝试安装React Native:

sudo npm install -g react-native-cli

此命令失败,我收到此消息:

npm ERR! Darwin 16.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "react-native-cli"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10
npm ERR! code MODULE_NOT_FOUND

npm ERR! Cannot find module 'github-url-from-git'
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/gianni/npm-debug.log

npm -v:3.10.10

node -v:v6.11.0

由于

0 个答案:

没有答案