2
我在centos6.5和node.js中安裝的node.js報告錯誤沒有問題,但是當我測試NPM -vNPM -v node.js的時候已經安裝
[[email protected] ~]# npm -v
module.js:340
throw err;
^
Error: Cannot find module 'npmlog'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /usr/bin/npm:18:11
at Object.<anonymous> (/usr/bin/npm:86:3)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
請檢查[這個問題](http://stackoverflow.com/questions/20028996/how-to-install-node-binary-distribution-文件上Linux的) – 2014-11-22 14:48:51