配置npm使用淘宝镜像源
npm config set registry https://registry.npm.taobao.org
配置后可通过下面方式来验证是否成功
npm config get registry
注:如果想还原npm仓库地址,只需再把地址配置成npm镜像就可以了
npm config set registry https://registry.npmjs.org/
原文链接
本文指导如何将npm配置为使用淘宝镜像源,以加速包的下载。通过运行'npm config set registry https://registry.npm.taobao.org'进行设置,并用'npm config get registry'验证。若要恢复到npm官方仓库,执行'npm config set registry https://registry.npmjs.org/'。
配置npm使用淘宝镜像源
npm config set registry https://registry.npm.taobao.org
配置后可通过下面方式来验证是否成功
npm config get registry
注:如果想还原npm仓库地址,只需再把地址配置成npm镜像就可以了
npm config set registry https://registry.npmjs.org/
原文链接
2万+

被折叠的 条评论
为什么被折叠?