nvm install报错:failed to verify certificate: x509: certificate has expired or is not yet valid
安装新的nodejs时,执行nvm install 16 时报错:
Could not retrieve https://npm.taobao.org/mirrors/node/latest-v16.x/SHASUMS256.txt.
Get "https://npm.taobao.org/mirrors/node/latest-v16.x/SHASUMS256.txt": tls: failed to verify certificate: x509: certificate has expired or is not yet valid:
解决:
重新设置
nvm node_mirror http://npm.taobao.org/mirrors/node/ nvm npm_mirror http://npm.taobao.org/mirrors/npm/