自学内容网 自学内容网

NVM镜像源报错:Could not retrieve https://npm.taobao.org/mirrors/node/index.json.

NVM镜像源报错:Could not retrieve https://npm.taobao.org/mirrors/node/index.json.

淘宝前端node镜像源已更换
NVM安装教程:http://t.csdnimg.cn/dihmG

背景

笔者在安装版本切换工具NVM时,配置完镜像源后,在控制台输入:nvm list available 时,出现异常 Could not retrieve https://npm.taobao.org/mirrors/node/index.json.
在这里插入图片描述

解决

在安装NVM(Node Version Manager)完成后,配置node镜像源时,请使用最新的镜像地址:

node_mirror: https://cdn.npmmirror.com/binaries/node/
npm_mirror: https://cdn.npmmirror.com/binaries/npm/

在这里插入图片描述

在这里插入图片描述

成效

在这里插入图片描述


原文地址:https://blog.csdn.net/m0_52116878/article/details/138916989

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