npm install出现Unexpected end of JSON input while parsing near错误解决方法
程序员文章站
2022-05-30 17:11:35
...
在npm install 安装依赖时出现一下bug:
Unexpected end of JSON input while parsing near 'xxxxxx'
根据网上做法进行缓存清理,但是没有用。那么 遇到问题首先做两步,检查npm -v ,node -v,检查两者的版本是否升级,我这里可能是因为node版本需要升级导致的问题,但是这里首先采取以下命令解决了:
npm i [email protected] -g
推荐阅读
-
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错误解决方法