npm install certificate has expired 证书过期错误
报错:npm ERR! request to https://registry.npm.taobao.org/events failed, reason: certificate has expired

npm install
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/events failed, reason: certificate has expired
npm ERR! A complete log of this run can be found in:
npm ERR! /.npm/_logs/2024-01-24T08_52_27_547Z-debug.log
ERROR: Job failed: exit status 1原因:证书过期
简单粗暴的解决办法:关闭 npm ssl 严格证书检查
npm set strict-ssl false或切换到官方源:
npm config set registry https://registry.npmjs.org/
淘宝镜像源:
npm config set registry https://registry.npmmirror.com
发布评论
发布评论前请先 登录。
0 评论
点赞
分享
收藏
评论列表 0

暂无评论




