“Unexpected end of JSON input while parsing near···”错误解决方案
背景:使用git管理项目,git pull 项目文件后运行npm install 时报错,错误是:Unexpected end of JSON input while parsing near···
解决方法:先清除缓存,再重新安装
清除缓存
npm cache clean --force
复制代码
重新安装
npm install
复制代码
“Unexpected end of JSON input while parsing near···”错误解决方案
背景:使用git管理项目,git pull 项目文件后运行npm install 时报错,错误是:Unexpected end of JSON input while parsing near···
清除缓存
npm cache clean --force
复制代码
重新安装
npm install
复制代码
转载于:https://juejin.im/post/5c3ac55a6fb9a049f36254b3