本文主要是介绍npm install 报错 npm ERR! code CERT_HAS_EXPIRED,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
前端安装依赖时报错:
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/@babel%2fplugin-syntax-optional-chaining failed, reason: certificate has expired
原因:淘宝源更新了
https://developer.aliyun.com/mirror/NPM?spm=a2c6h.13651102.J_4121707010.2.3e221b11kdsfYF
解决办法:
npm config set registry http://registry.npmmirror.com
这篇关于npm install 报错 npm ERR! code CERT_HAS_EXPIRED的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!