自学内容网 自学内容网

nvm 安装某个版本的node,缺少npm包

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版本的根目录下


原文地址:https://blog.csdn.net/afabamanimou/article/details/144053210

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!