切换淘宝镜像

来回自如的切换淘宝镜像与国外源

1.打开cmd,查看当前镜像地址:

npm get registry

2.切换为淘宝镜像:

npm config set registry http://registry.npm.taobao.org/

3.切换为原本的npm镜像:

npm config set registry https://registry.npmjs.org/

原文地址:https://www.cnblogs.com/zhengyeye/p/7978364.html