npm ERR! Unexpected end of JSON input while parsing near '...'
程序员文章站
2022-05-30 16:37:17
...
npm ERR! Unexpected end of JSON input while parsing near '...'
这个错误的解决方法有以下几种:
1.删掉package.lock.json
2.清除cache
npm cache clean --force
3.进入下面这个文件夹清除cache 路径:C:/Users/PC/AppData/Roaming/npm-cache 执行:
npm cache clean --force
4.不要用淘宝镜像
npm set registry https://registry.npmjs.org/
##或者使用淘宝镜像cnpm install
推荐阅读
-
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错误解决方法