NPM安装问题Ubuntu 9.04
所有,尝试使用这里的命令来安装NPM: http : //howtonode.org/introduction-to-npm
具体来说,当我运行:
curl http://npmjs.org/install.sh | sh
这是我得到的错误…
node cli.js cache clean TypeError: Object #<an EventEmitter> has no method 'on' at Object.<anonymous> (/home/sanjay/npm-1285345468/lib/utils/rm-rf.js:12:9) at Module._compile (module:385:23) at Module._loadScriptSync (module:397:16) at Module.loadSync (module:296:10) at loadModule (module:241:16) at require (module:364:12) at Object.<anonymous> (/home/sanjay/npm-1285345468/cli.js:14:10) at Module._compile (module:385:23) at module:413:20 at fs:52:23 make: *** [uninstall] Error 1 sanjay@sanjay-desktop:~$
不知道如果我做的事情愚蠢,任何帮助表示赞赏..谢谢!
我有同样的错误 – 升级到最新的稳定版本使它消失,我很高兴npm'ing。