美文网首页
npm install 出错及其debug办法

npm install 出错及其debug办法

作者: 52JackWang | 来源:发表于2020-10-10 10:55 被阅读0次

执行npm install下载依赖报错:

npm ERR! Unexpected end of JSON input while parsing near '...,"dist":{"shasum":".....'

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Roaming\npm-cache_logs\2019-08-03T06_21_13_023Z-debug.log

解决办法:win+r 输入cmd 执行npm cache clean --force命令
提示: npm WARN using --force I sure hope you know what you are doing.说明操作成功.

其它并行动作:换一下网络。

再次执行npm install,下载依赖成功,问题解决.感谢两位大佬经验,附上博文连接:

https://blog.csdn.net/liu_zhaoming/article/details/80848639

https://blog.csdn.net/genius_yym/article/details/84645915

相关文章

网友评论

      本文标题:npm install 出错及其debug办法

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