npm error request to https://registry.npm.taobao.org/cnpm failed, reason: certificate has expired
是因为:npm错误请求https://registry.npm.taobao.org/cnpm失败,原因:证书已过期,
2024年1月22日,淘宝NPM镜像站的域名 registry.npm.taobao.org 的SSL证书过期
解决方案
1、清除npm缓存
npm cache clean --force
如果报一下错误,是因为npm版本过高的问题
可以使用,新版清除npm缓存的命令
npm cache verify