npm镜像的常用操作
查看当前配置的 npm 镜像
npm config get registry
切换官方镜像
npm config set registry https://registry.npmjs.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 config set registry https://npm.aliyun.com
查看 npm 所有配置项
npm config list