一、淘宝镜像源
npm config set registry https://registry.npm.taobao.org
验证
npm config get registry
返回registry.npm.taobao.org,成功。
二、华为云镜像源
npm config set registry https://mirrors.huaweicloud.com/repository/npm/
验证
npm config get registry
一、淘宝镜像源
npm config set registry https://registry.npm.taobao.org
验证
npm config get registry
返回registry.npm.taobao.org,成功。
二、华为云镜像源
npm config set registry https://mirrors.huaweicloud.com/repository/npm/
验证
npm config get registry