每次我尝试使用nodester npm安装一个模块或列出已安装的模块时,我都会得到这样的结果。
nodester Error: npm doesn't work with node v0.8.1
nodester Required: node@0.4 || 0.5 || 0.6
nodester at /usr/lib/node_modules/npm/bin/npm-cli.js:57:23
nodester at Object.<anonymous> (/usr/lib/node_modules/npm/bin/npm-cli.js:77:
3)
nodester at Module._compile (module.js:449:26)
nodester at Object.Module._extensions..js (module.js:467:10)
nodester at Module.load (module.js:356:32)
nodester at Function.Module._load (module.js:312:12)
nodester at Module.runMain (module.js:487:10)
nodester at process.startup.processNextTick.process._tickCallback (node.js:2有人知道这条信息到底是什么意思吗?我好像找不到任何关于它的信息。它讨论的是nodester服务器上的npm版本,根据路径判断(我在Windows上)。
发布于 2012-11-05 19:34:56
我最近在我的Ubuntu设置上遇到了这个问题,基本上我更新了NPM,它解决了这个问题。对我来说,我似乎需要配置NPM来使用当前安装的node版本。希望这能帮助那些在我努力寻找答案的时候偶然发现这篇文章的人。
https://stackoverflow.com/questions/11552079
复制相似问题