nodejs 0.10.0安装:cp /bin,/lib,/share到相对应的系统路径/usr/loca/bin,/lib,/share,这些操作完后终端执行node -v,正常返回,而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/local/bin/npm:19:11 at Object.<anonymous> (/usr/local/bin/npm:87:3) at Module._compile (module.js:456:26) at Object.Module._extensions…js (module.js:474:10)
请问还要继续进行哪些操作?
7 回复
you can use TJ’s n
, look this :
https://github.com/visionmedia/n
签名: 交流群244728015 《Node.js 服务器框架开发实战》 http://url.cn/Pn07N3