前端安裝依賴時(shí)報(bào)錯(cuò):
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文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-820572.html
解決辦法:文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-820572.html
npm config set registry http://registry.npmmirror.com
到了這里,關(guān)于npm install 報(bào)錯(cuò) npm ERR! code CERT_HAS_EXPIRED的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!