获取当前npm镜像仓库地址
npm config get registry
设置npm镜像仓库地址
- 使用官方中国镜像
npm config set registry https://registry.npmmirror.com
- 使用淘宝镜像
npm config set registry https://registry.npm.taobao.org
获取当前npm镜像仓库地址
npm config get registry
设置npm镜像仓库地址
npm config set registry https://registry.npmmirror.com
npm config set registry https://registry.npm.taobao.org