开通VIP,畅享免费电子书等14项超值服
首页
好书
留言交流
下载APP
联系客服
2022.09.13 荷兰
搬运工:解决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执行:
4.不要用淘宝镜像
npm set registry https://registry.npmjs.org/
5. npm 版本降级
npm -g install npm@6.x
微信登录中...请勿关闭此页面