module.js:339抛出错误;错误:找不到模块';npmlog';在Windows8Pro上

module.js:339抛出错误;错误:找不到模块';npmlog';在Windows8Pro上,npm,npm-install,Npm,Npm Install,[module.js:339抛出错误; 错误:在WINDOWS 8 Pro上找不到模块“npmlog” 我已尝试重新安装nodejs,但仍无法在windows上运行 module.js:339 throw err; 错误:找不到模块“npmlog” 在Function.Module.\u解析文件名(Module.js:336:15) 在Function.Module.\u加载(Module.js:278:25) 在Module.require(Module.js:365:17) 在需要

[module.js:339抛出错误;

错误:在WINDOWS 8 Pro上找不到模块“npmlog”

我已尝试重新安装nodejs,但仍无法在windows上运行

module.js:339
    throw err;
错误:找不到模块“npmlog” 在Function.Module.\u解析文件名(Module.js:336:15)
在Function.Module.\u加载(Module.js:278:25)
在Module.require(Module.js:365:17)
在需要时(module.js:384:17)
at/usr/local/lib/node_modules/npm/bin/npm cli.js:18:11
at对象。(/usr/local/lib/node_modules/npm/bin/npm cli.js:75:3)
在模块处编译(模块js:460:26)
在Object.Module._extensions..js(Module.js:478:10)
在Module.load(Module.js:355:32)
在Function.Module.\u加载(Module.js:310:12)


我刚刚在OS X Yosemite 10.10.5上遇到了这个问题

您可以通过删除所有旧的(不兼容的)节点模块来解决此问题:

  • *尼克斯
    • rm-rf/usr/local/bin/node_模块
  • 窗户
    • rmdir%appdata%\npm\node\u模块/s/q

对于CentOS 7(我也认为是6):/usr/lib/node_modules我在Windows 10上,我刚刚删除了
%appdata%\npm缓存中的所有内容。
。。。