npm ERR!Unexpected end of JSON input while parsing near
程序员文章站
2022-05-30 16:37:41
...
做vue新项目安装npm安装失败
删掉node_modules重新安装也失败
查了别的文章,说webpack版本问题,降回旧版本还是报错,还有说端口被占用,换了几个端口号也同样没解决。
全局安装得缓存位置C:\Users\{用户名}\AppData\Roaming\npm-cache,删除了也报错。
后来删除node_modules,再清除缓存就可以重新安装成功。
npm cache clean --force
推荐阅读
-
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错误解决方法