NPM:切换国内镜像源
一、查看现在的镜像源
通常默认官方源是https://registry.npmjs.org
npm config get registry
二、切换镜像源
//切换淘宝源
npm config set registry https://registry.npm.taobao.org
//切换腾讯源
npm config set registry http://mirrors.cloud.tencent.com/npm/
//切换阿里云源
npm config set registry https://registry.npmmirror.com
原文地址:https://blog.csdn.net/jhgfvjfggff_fds_f/article/details/145168832
免责声明:本站文章内容转载自网络资源,如侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!