在安装 Vue cli 的过程中出现了 npm ERR! Unexpected end of JSON input while parsing near... 的错误
npm ERR! Unexpected end of JSON input while parsing near...
解决方法:
清除 cache
npm cache clean --force
设置镜像(不使用淘宝镜像)
npm set registry https://registry.npmjs.org/
本文分享自 作者个人站点/博客 前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体分享计划 ,欢迎热爱写作的你一起参与!