扔错了; ^错误:找不到模块' update-notifier'

时间:2018-01-09 09:42:07

标签: node.js react-native npm-install

$ npm install -g react-native-cli

安装反应原生Cli收到错误..

module.js:544
throw err;
^
Error: Cannot find module 'update-notifier'
at Function.Module._resolveFilename (module.js:542:15)
at Function.Module._load (module.js:472:25)
at Module.require (module.js:585:17)
at require (internal/module.js:11:18)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:29:19
at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:92:3)
at Module._compile (module.js:641:30)
at Object.Module._extensions..js (module.js:652:10)
at Module.load (module.js:560:32)
at tryModuleLoad (module.js:503:12)

0 个答案:

没有答案