设置
npm config set registry https://registry.npmmirror.com
yarn config set registry https://registry.npmmirror.com
pnpm config set registry https://registry.npmmirror.com
查看
npm config get registry
yarn config get registry
pnpm config get registry
其他镜像地址
1. 官方镜像:https://registry.npmjs.org/
2. 淘宝镜像:https://registry.npm.taobao.org/
3. cnpm镜像:https://r.cnpmjs.org/
4. 阿里云镜像:https://npm.aliyun.com/
5. 中国科技大学镜像:https://mirrors.ustc.edu.cn/npm/
6. 华为云镜像:https://mirrors.huaweicloud.com/repository/npm/
7. 七牛云镜像:https://npm.qiniu.com/