pnpm i 报错 ERR_PNPM_META_FETCH_FAIL

517 阅读1分钟

今天运行pnpm i的时候报错信息是 

ERR_PNPM_META_FETCH_FAILGET https://registry.npm.taobao.org/@vue%2Fcli-service: request to https://registry.npm.taobao.org/@vue%2Fcli-service failed, reason: certificate has expired

解决方法如下

  1. 清理缓存
npm cache clean --force
  1. 禁止安全连接
npm config set strict-ssl false
  1. 修改镜像
npm config set registry https://registry.npmmirror.com
  1. 重新install

成功