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/

 

posted on 2024-04-08 11:35  欢跳的心  阅读(366)  评论(0编辑  收藏  举报