前端老生

npm install certificate has expired 淘宝镜像证书过期的解决办法

npm config set registry https://registry.npm.taobao.org certificate has expired

 

原因: 新的Web 站点:https://npmmirror.com,Registry Endpoint:https://registry.npmmirror.com。随着新的域名已经正式启用,老 http://npm.taobao.org 和 http://registry.npm.taobao.org 域名将于 2022 年 05 月 31 日零时起停止服务

淘宝 NPM 镜像站切换新域名

 

npm config set registry https://registry.npmmirror.com
npm set strict-ssl false
npm config get registry
yarn config set strict-ssl false
yarn install --ignore-engines
yarn build