打开APP
userphoto
未登录

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

开通VIP
npm ERR! Unexpected token in JSON at position 0 while parsing near ' 解决办法

使用nvm use 12版本时

npm ERR! Unexpected token in JSON at position 0 while parsing near '<HTML>

npm ERR! <!--...'

 

网上共检索出两种方法, 但是都not work for me.

我想你们也已经试过了。

1 . rm -f package-lock.json

2. npm cache clean --force

 

第三种 我尝试 成功的办法, 如下 。

npm config rm proxy npm config rm https-proxy

虽然 我并没有设置过 代理,但 就这样解决了。

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
npm ERR! Unexpected end of JSON input while parsing near ''...“,''
 npm安装报错 解决npm ERR! Unexpected end of JSON input while parsing near
亲测解决npmERR!UnexpectedendofJSONinputwhileparsingnear...的方法
ES6 - 环境报错整理(1): Unexpected end of JSON input while parsing near '...es":"7.0.0-alpha.11",'
github package的使用教程
npm publish 发布一个 Angular 库的时候报错以及解决方法
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服