“Unexpected end of JSON input while parsing near···”错误解决方案
程序员文章站
2022-07-03 08:43:01
...
“Unexpected end of JSON input while parsing near···”错误解决方案
背景:在安装angular-cli时报错,错误是:Unexpected end of JSON input while parsing near‘···“,”es6-promise”:”^3.1’
解决方法:先清除缓存,再重新安装
- 清除缓存
npm cache clean --force
- 重新安装
npm install -g @angular/cli
最后安装成功,显示如下:
推荐阅读
-
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
-
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的报错问题
-
Unexpected end of JSON input while parsing near
-
vue npm安装webpack报错:Unexpected end of JSON input while parsing near
-
Unexpected end of JSON input while parsing near错误
-
npm install出现Unexpected end of JSON input while parsing near错误解决方法