新版本的node自带npm 所以就不需要安装了,可是npm -v报错,不知道是什么原因,在线等,先谢谢大家。
C:\Windows\system32>npm -v
module.js:327
throw err;
^
Error: Cannot find module 'graceful-fs'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (C:\Users\liuna\AppData\Roaming\nvm\v4.4.3\node_modules\npm\lib\utils\ini.js:32:10)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
module.js:327
throw err;
^
Error: Cannot find module 'graceful-fs'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (C:\Users\liuna\AppData\Roaming\nvm\v4.4.3\node_modules\npm\lib\utils\ini.js:32:10)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
卸载,重装个其他版本的试试
楼主解决了吗?我也遇到了相似的问题