前端安装依赖时报错:
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文章来源:https://www.toymoban.com/news/detail-820572.html
解决办法:文章来源地址https://www.toymoban.com/news/detail-820572.html
npm config set registry http://registry.npmmirror.com
到了这里,关于npm install 报错 npm ERR! code CERT_HAS_EXPIRED的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!