1.在控制台输入命
npm config get registry
输出默认地址为:https://registry.npmjs.org/
2.修改为阿里镜像地址命令:
npm config set registry https://registry.npmmirror.com/
npm config get registry
输出默认地址为:https://registry.npmjs.org/
npm config set registry https://registry.npmmirror.com/