npm 切换阿里镜像

1.在控制台输入命

npm config get registry

  输出默认地址为:https://registry.npmjs.org/

2.修改为阿里镜像地址命令:

npm config set registry https://registry.npmmirror.com/