早睡早起,方能养生
Sleep early rise early, way to keep healthy

nvm下载node版本报错 Get "https://npm.taobao.org/mirrors/node/latest/SHASUMS256.txt": tls: failed to verify certificate: x509:

super
2024-05-07 22:59
views 1179

nvm目录下settings.txt  y原内容

 

 

将域名更换为npmmirror.com

 

root: E:\soft_work\nvm
path: E:\soft_work\nodejs

node_mirror: https://npmmirror.com/mirrors/node/

npm_mirror: https://npmmirror.com/mirrors/npm/

 

关键在于最后两句,前面两句不用替换

 

淘宝原域名https过期了,所以用这个网址

 

npm config set registry https://registry.npmmirror.com


分享
0 条讨论
top