首页 > Web开发 > 详细

npm 在安装 Vue脚手架命令(npm install -g @vue/cli)时报错安装报错--“Unexpected end of JSON input while parsing near···”

时间:2020-03-25 19:14:24      阅读:127      评论:0      收藏:0      [点我收藏+]

在安装Vue的脚手架(npm install -g @vue/cli 项目名称)时,提示:

Unexpected end of JSON input while parsing near

其实,但凡使用npm 时,只要提示这个,都可以按照以下几种方式进行尝试。

 

第一种:删掉package.lock.json

第二种:清除cache

npm cache clean --force
第三种:进入下面这个文件夹,把文件夹npm-cache下的内容删除掉(清除cache)


路径:C:/Users/DELL/AppData/Roaming/npm-cache

原文链接:https://blog.csdn.net/jiang7701037/article/details/95078483

npm 在安装 Vue脚手架命令(npm install -g @vue/cli)时报错安装报错--“Unexpected end of JSON input while parsing near···”

原文:https://www.cnblogs.com/yzc19838458/p/12568021.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!