nvm 下载node报错:Could not retrieve https://nodejs.org/dist/index.json.
报错信息:Could not retrieve https://nodejs.org/dist/index.json.
Get "https://nodejs.org/dist/index.json": dial tcp 104.20.23.46:443: i/o timeout
这是因为node源都是国外的服务,连接超时,所以我们把node源设置为国内的镜像就可以了。
在nvm的安装文件夹下找到settings.txt文件,这个是nvm的配置文件。打开settings.txt后,添加下面的两行代码,就设置成了国内的镜像:(这已经是最新的镜像源地址)
node_mirror: https://npmmirror.com/mirrors/node/
npm_mirror: https://npmmirror.com/mirrors/npm/
亲测可用!!!
原文地址:https://blog.csdn.net/w_p_wyd/article/details/142422557
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!