运行nvm命令:
nvm list available
报错:
PS C:\Users\Administrator> nvm list available
Could not retrieve https://npm.taobao.org/mirrors/node/index.json.
Get "https://npm.taobao.org/mirrors/node/index.json": x509: certificate is valid for *.tbcdn.cn, *.taobao.com, *.alicdn.com, *.cmos.greencompute.org, cmos.greencompute.org, m.intl.taobao.com, *.mobgslb.tbcache.com, *.alikunlun.com, alikunlun.com, *.django.t.taobao.com, alicdn.com, *.tbcache.com, *.tmall.com, *.1688.com, *.3c.tmall.com, *.alibaba.com, *.aliexpress.com, *.aliqin.tmall.com, *.alitrip.com, *.aliyun.com, *.cainiao.com, *.cainiao.com.cn, *.chi.taobao.com, *.chi.tmall.com, *.china.taobao.com, *.dingtalk.com, *.etao.com, *.feizhu.cn, *.feizhu.com, *.fliggy.com, *.fliggy.hk, *.food.tmall.com, *.jia.taobao.com, *.jia.tmall.com, *.ju.taobao.com, *.juhuasuan.com, *.lw.aliimg.com, *.m.1688.com, *.m.alibaba.com, *.m.alitrip.com, *.m.cainiao.com, *.m.etao.com, *.m.taobao.com, *.m.taopiaopiao.com, *.m.tmall.com, *.m.tmall.hk, *.mei.com, *.taopiaopiao.com, *.tmall.hk, *.trip.taobao.com, *.xiami.com, 1688.com, alibaba.com, aliexpress.com, alitrip.com, aliyun.com, cainiao.com, cainiao.com.cn, dingtalk.com, etao.com, feizhu.cn, feizhu.com, fliggy.com, fliggy.hk, juhuasuan.com, mei.com, taobao.com, taopiaopiao.com, tmall.hk, xiami.com, tmall.com, *.cloudvideocdn.taobao.com, cloudvideocdn.taobao.com, tbcdn.cn, not npm.taobao.org
这应该是淘宝镜像地址过期了。
解决方法就是修改镜像地址即可用
找到nvm安装路径 -> 找到 settings.txt 文件 -> 配置下载源
把settings.txt文件的
node_mirror: https://npm.taobao.org/mirrors/node/ npm_mirror: https://npm.taobao.org/mirrors/npm/
改成下面地址
node_mirror: http://npmmirror.com/mirrors/node/ npm_mirror: http://registry.npmmirror.com/mirrors/npm/
改后如图所示: