解决 npm ERR! Unexpected end of JSON input while parsing near...

作者: hedeqiang

发布时间: 2019-03-28 23:27:21

在安装 Vue cli 的过程中出现了 npm ERR! Unexpected end of JSON input while parsing near... 的错误

file

解决方法:

清楚 cache

npm cache clean --force

设置镜像(不使用淘宝镜像)

npm set registry https://registry.npmjs.org/

关于极客返利

极客返利 是由我个人开发的一款网课返利、返现平台。包含 极客时间返现、拉勾教育返现、掘金小册返现、GitChat返现。目前仅包含这几个平台。后续如果有需要可以考虑其他平台。 简而言之就是:你买课,我返现。让你花更少的钱,就可以买到课程。

https://geek.laravelcode.cn

https://geek.idaka.ink

版权许可

本作品采用 知识共享署名 4.0 国际许可协议 进行许可。

转载无需与我联系,但须注明出处,注明文章来源 解决 npm ERR! Unexpected end of JSON input while parsing near...