前端安装依赖时报错:
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