我有NVM 0.30.1,并用它在Fedora 22上安装了node.js v5.4.0(带有NPM 3.5.4),当我运行时npm update -g,收到以下警告:
npm update -g
npm WARN EBUNDLEOVERRIDE Replacing bundled npm > init-package-json with new installed version npm WARN EBUNDLEOVERRIDE Replacing bundled npm > node-gyp with new installed version npm WARN EBUNDLEOVERRIDE Replacing bundled npm > npm-install-checks with new installed version npm WARN EBUNDLEOVERRIDE Replacing bundled npm > npmlog with new installed version npm WARN EBUNDLEOVERRIDE Replacing bundled npm > read-package-json with new installed version
之后,当我运行npm时,出现此错误:
module.js:328 throw err; ^ Error: Cannot find module 'npmlog' at Function.Module._resolveFilename (module.js:326:15) at Function.Module._load (module.js:277:25) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at /home/peflorencio/.nvm/versions/node/v5.4.0/lib/node_modules/npm/bin/npm-cli.js:20:13 at Object.<anonymous> (/home/peflorencio/.nvm/versions/node/v5.4.0/lib/node_modules/npm/bin/npm-cli.js:76:3) at Module._compile (module.js:398:26) at Object.Module._extensions..js (module.js:405:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12)
有谁知道这是什么以及如何解决?
谢谢
感谢您的回答。这是一个错误,已经在Node v5.4.1中修复。现在它照常工作。