踽踽终日,不断寻找着更大、更合适的壳,直到有一天,我们无力再走了,把壳还给世界。一开始就没有壳,到最后也归于空无,这是生命的实景,我与我的肉身只是淡淡地擦身而过。——林清玄 《玫瑰奇迹》
G:\项目源码\低代码平台\DataRoom\data-room-ui>nvm install 14.0.0
Could not retrieve https://npm.taobao.org/mirrors/node/latest/SHASUMS256.txt.
Get "https://npm.taobao.org/mirrors/node/latest/SHASUMS256.txt": tls: failed to verify certificate: 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
问题背景:
因为淘宝的镜像域名更换,由于npm.taobao.org域名HTTPS证书到期更换为npmmirror.com,那么就会导致之前使用该镜像域名下载依赖的安装包会出现问题
报错信息:
G:\项目源码\低代码平台\DataRoom\data-room-ui>nvm ls available
Could not retrieve https://npm.taobao.org/mirrors/node/index.json.
Get “https://npm.taobao.org/mirrors/node/index.json”: x509: certificate has expired or is not yet valid:
问题解决:
# 配置node镜像:
node_mirror: https://npmmirror.com/mirrors/node/
# 配置npm镜像:
npm_mirror: https://npmmirror.com/mirrors/npm/