Mean Stack应用程序module.js:471 throw err; ^

时间:2017-06-26 04:18:37

标签: angularjs node.js mean-stack mean.io

获取以下错误消息,我尝试通过运行npm install更新npm并重新安装平均堆栈应用程序来修复

Error: Cannot find module 'npm'
    at Function.Module._resolveFilename (module.js:469:15)   
    at Function.Module._load (module.js:417:25)  
    at Module.require (module.js:497:17)  
    at require (internal/module.js:20:19)  
    at Object.<anonymous>  
    (C:\Users\Laptop2\AppData\Roaming\npm\node_modules\mean-cli\lib\cli.js:5:7)  
    at Module._compile (module.js:570:32)  
    at Object.Module._extensions..js (module.js:579:10)  
    at Module.load (module.js:487:32)  
    at tryModuleLoad (module.js:446:12)  
    at Function.Module._load (module.js:438:3)  

2 个答案:

答案 0 :(得分:0)

使用以下命令问题解决

更新Npm
npm install npm@latest -g

答案 1 :(得分:0)

尝试:  npm install npm@latest -g