- 查看当前使用的镜像地址命令
npm config get registry
- 切换为阿里云镜像
npm config set registry http://registry.npmmirror.com
- 换回原镜像
npm config set registry http://registry.npmjs.org
- 阿里云镜像说明
http://registry.npmmirror.com
npm config get registry
npm config set registry http://registry.npmmirror.com
npm config set registry http://registry.npmjs.org