bash
Downloading npm version 6.14.16... Error while downloading https://github.com/npm/cli/archive/v6.14.16.zip - Get "https://github.com/npm/cli/archive/v6.14.16.zip": dial tcp 20.205.243.166:443: connectex: No connection could be made because the target machine actively refused it.
Could not download npm for node v12.22.12.
Please visit https://github.com/npm/cli/releases/tag/v6.14.16 to download npm.
It should be extracted to C:\Users\x\AppData\Roaming\nvm\v12.22.12
解决办法:
1、根据地址下载对应文件 https://github.com/npm/cli/archive/v6.14.16.zip
2、解压文件到v12.22.12 的node_modules/npm 目录下
3、拷贝/npm/bin 目录下的4个文件,放到node版本的根目录下