nvm下载node失败如何处理?

nvm下载node 14的版本失败

Downloading node.js version 14.21.3 (64-bit)...
Complete
Creating C:\Users\code3\AppData\Roaming\nvm\temp

Downloading npm version 6.14.18... Error while downloading https://github.com/npm/cli/archive/v6.14.18.zip - Get "https://github.com/npm/cli/archive/v6.14.18.zip": read tcp 192.168.1.139:60648->20.205.243.166:443: wsarecv: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Could not download npm for node v14.21.3.
Please visit https://github.com/npm/cli/releases/tag/v6.14.18 to download npm.
It should be extracted to C:\Users\code3\AppData\Roaming\nvm\v14.21.3

解决办法:在cmd窗口执行下面的命令

nvm node_mirror https://npmmirror.com/mirrors/node/
nvm npm_mirror https://npmmirror.com/mirrors/npm/

image

然后再安装node14的版本

nvm install 14

posted @ 2026-07-20 21:42  南风晚来晚相识  阅读(49)  评论(0)    收藏  举报