npm ERR! Unexpected end of JSON input while parsing near '....1","table":"^3.7.8",' npm ERR! A c...

执行npm install时出现以下错误
npm ERR! Unexpected end of JSON input while parsing near '....1","table":"^3.7.8",'

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\andro\AppData\Roaming\npm-cache_logs\2019-05-20T07_05_51_075Z-debug.log

解决方法:
1.直接执行 npm cache clean --force, 如果执行成功,再npm install即可。
2.如果执行失败,请先升级npm,即npm i -g npm, 最后再执行npm cache clean --force, 最后再npm install.
3.如果还执行失败,那就先npm cache verify,再npm cache clean --force,最后再npm install。
4.如果还是失败,循环执行npm cache clean --force,然后再npm install。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容