问题描述

今天安装项目依赖npm install 的时候出现错误:

npm ERR! Unexpected end of JSON input while parsing near '...e":"^23.5.0","listr":'

方案一:

第一步:

npm cache clean --force

第二步:(再安装)

npm install --registry=https://registry.npm.taobao.org

方案二

执行以上操作依然没解决问题。最后切换为官方镜像后解决了,具体原因不详。
第一步:

npm cache clean --force

第二步:(再安装)

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

相关文章:

  • 2022-01-09
  • 2021-09-14
  • 2021-08-25
  • 2022-02-10
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
猜你喜欢
  • 2022-01-07
  • 2022-12-23
  • 2021-09-29
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案