一、情景:
使用nvm list available查询当前可以安装的node版本,出现报错如图
Could not retrieve https://npm.taobao.org/mirrors/node/index.json.
Get “https://npm.taobao.org/mirrors/node/index.json”: tls: failed to verify certificate: x509: certificate has expired or is not yet valid:
报错提示:certificate has expired or is not yet valid证书已经过期
二、解决方法
1、找到nvm配置文件
2、修改nvm配置文件
#node_mirror: https://npm.taobao.org/mirrors/node/
node_mirror: https://npmmirror.com/mirrors/node/
三、分析原因
技术资讯:npm 淘宝镜像正式到期,赶紧更新!https://zhuanlan.zhihu.com/p/679613901