npm ERR! Unexpected end of JSON input while parsing near" "

版权声明:欢迎评论 https://blog.csdn.net/halaoda/article/details/80927004

今天在做项目的时候不小心删了node包结果就一直报错,,,,初始化也么用。。。

npm ERR! Unexpected end of JSON input while parsing near '..."klaw":"^1.0.0","pa
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\lenovo\AppData\Roaming\npm-cache\_logs\2018-07-05T06_29_06

解决方案:

1、

npm cache clean --force

2、

npm install --registry=https://registry.npm.taobao.org

这样问题就解决了。。。

猜你喜欢

转载自blog.csdn.net/halaoda/article/details/80927004
今日推荐