打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
 npm安装报错 解决npm ERR! Unexpected end of JSON input while parsing near
userphoto

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
执行:

npm cache clean --force

4.不要用淘宝镜像

npm set registry https://registry.npmjs.org/

5. npm 版本降级

npm -g install npm@6.x
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
亲测解决npmERR!UnexpectedendofJSONinputwhileparsingnear...的方法
npm ERR! Unexpected end of JSON input while parsing near ''...“,''
ES6 - 环境报错整理(1): Unexpected end of JSON input while parsing near '...es":"7.0.0-alpha.11",'
npm ERR! Unexpected token in JSON at position 0 while parsing near ' 解决办法
打开android device monitor提示unexpected error while parsing input:Invalid ui automator hierarchy file
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2021-03-07T06_09_38_145Z-debug.log
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服