npm镜像源及命令
一、配置和查看镜像源
淘宝中国镜像源
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 镜像源:
https://npm.aliyun.com
官方默认全局镜像源:
npm config set registry https://registry.npmjs.org
检查当前镜像
npm config get registry
————————————————
原文链接:https://blog.csdn.net/hzxOnlineOk/article/details/136151864
二、以指定镜像源安装依赖
npm install –registry=https://registry.npm.taobao.org