当前位置:  开发笔记 > 编程语言 > 正文

npm 3.5.4:更新期间的EBUNDLEOVERRIDE导致npmlog错误

如何解决《npm3.5.4:更新期间的EBUNDLEOVERRIDE导致npmlog错误》经验,为你挑选了0个好方法。

通过'brew upgrade'升级到Node 5.4.0,然后运行'npm update -g',升级到npm 3.5.4.npm update完成警告:

/usr/local/lib
??? npm@3.5.4

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 update -g'(或任何其他npm命令)现在会抛出npmlog错误:

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 /usr/local/lib/node_modules/npm/bin/npm-cli.js:20:13
    at Object. (/usr/local/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)

我不清楚为什么要发生覆盖,或者如何再次将npm指向日志.欣赏任何想法.

推荐阅读
k78283381
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有