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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论