今天运行pnpm i的时候报错信息是
ERR_PNPM_META_FETCH_FAIL GET https://registry.npm.taobao.org/@vue%2Fcli-service: request to https://registry.npm.taobao.org/@vue%2Fcli-service failed, reason: certificate has expired
解决方法如下
- 清理缓存
npm cache clean --force
- 禁止安全连接
npm config set strict-ssl false
- 修改镜像
npm config set registry https://registry.npmmirror.com
- 重新
install