美文网首页
npm 报错This is probably not a pro

npm 报错This is probably not a pro

作者: 一位先生_ | 来源:发表于2020-08-23 21:01 被阅读0次

报错:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! code-push-server@0.5.4 start: `node /home/node/bin/www`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the code-push-server@0.5.4 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-08-23T12_40_41_981Z-debug.log
root@ffd7e2b57470:/home/node# cat /root/.npm/_logs/2020-08-23T12_34_00_636Z-debug.log

安装了一个插件后运行 npm run serve 就报了以上错误

于是执行了npm install 依旧报错

最后,清空了之前安装的

rm -rf node_modules

rm package-lock.json

npm cache clear --force

npm install

完美解决问题!

相关文章

网友评论

      本文标题:npm 报错This is probably not a pro

      本文链接:https://www.haomeiwen.com/subject/yguwjktx.html