国内npm源镜像(npm加速下载) 指定npm镜像
npm 官方原始镜像网址是:
https://registry.npmjs.org
阿里云 NPM 镜像:
https://registry.npmmirror.com/
腾讯云 NPM 镜像:
https://mirrors.cloud.tencent.com/npm/
华为云 NPM 镜像:
https://mirrors.huaweicloud.com/repository/npm/
使用阿里云 镜像源加速 NPM
npm config set registry https://registry.npmmirror.com/
使用那个镜像,只需要 npm config set registry + 对应的镜像网址就好了
npm config set registry
查看当前的镜像源:npm config get registry
npm config get registry
<