解决npm ERR! Unexpected end of JSON input while parsing near的报错问题
程序员文章站
2022-07-03 08:42:43
...
今天在使用vue-cli脚手架创建项目的时候,出现了这的问题,很明显出现了npm下载出错了
npm ERR! Unexpected end of JSON input while parsing near '...{},"dist":{"shasum":"'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Program Files\nodejs\node_cache\_logs\2020-07-19T13_06_49_278Z-debug.log
网上的解决办法:
1.清除缓存
npm cache clean --force
2.重新安装
npm install
安装成功
我出现的问题:
一开始使用win+R 打开cmd的方法,发现清除缓存之后无法安装,想到了npm下载权限的问题,后面使用管理员打开cmd解决了.
后面就可以直接使npm下载了!
上一篇: matlab 求一维信号的上下包络线
推荐阅读
-
亲测解决npm ERR! Unexpected end of JSON input while parsing near...的方法
-
npm ERR! Unexpected end of JSON input while parsing near
-
npm ERR! Unexpected end of JSON input while parsing near '...Rg9e9zaVBZ
-
“Unexpected end of JSON input while parsing near···”错误解决方案
-
解决npm ERR! Unexpected end of JSON input while parsing near的报错问题
-
vue npm安装webpack报错:Unexpected end of JSON input while parsing near
-
npm install出现Unexpected end of JSON input while parsing near错误解决方法
-
npm install出现Unexpected end of JSON input while parsing near错误解决方法
-
npm install出现"Unexpected end of JSON input while parsing near"错误解决方法
-
npm install出现"Unexpected end of JSON input while parsing near"错误解决方法