淘宝镜像源
npm config set registry https://registry.npm.taobao.org (旧版,已到期)
淘宝中国镜像源
npm config set registry https://registry.npmmirror.com (新版)
腾讯云镜像源
npm config set registry http://mirrors.cloud.tencent.com/npm/
华为云镜像源
npm config set registry https://mirrors.huaweicloud.com/repository/npm/
阿里云 NPM 镜像源:
官方默认全局镜像源:
npm config set registry https://registry.npmjs.org
检查当前镜像
npm config get registry