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

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-02
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案