解决npm 安装依赖报错:npm ERR! Unexpected end of JSON input while parsing near ‘.

运行npm install时有时会遇到以下错误:

npm ERR! Unexpected end of JSON input while parsing near …

这时可以先执行下面的命令:

npm cache clean --force

然后再执行npm install就可以了

猜你喜欢

转载自blog.csdn.net/weixin_44517301/article/details/113730856