本项目若对您有帮助的话,劳烦您动动小指为本项目( https://github.com/JiaosSir/npmir# )点颗亮闪闪的star🥺,您的支持我是我坚持的唯一动力!
如有bug或有修改建议,欢迎到我的邮箱( a1962749022@163.com )或者github issue ( https://github.com/JiaosSir/npmir/issues ) 跟我一起讨论!
本库默认提供如下镜像源列表
- npm官方源 https://registry.npmjs.org/
- cnpm镜像 https://r.cnpmjs.org/
- 淘宝镜像 https://registry.npmmirror.com/
- 腾讯云镜像 https://mirrors.cloud.tencent.com/npm/
- 华为云镜像 https://mirrors.huaweicloud.com/repository/npm/
npm install npmir -g
npmir use
# 测试当前使用的镜像源
npmir test -c
# 测试当前镜像源列表
npmir test --all
# 批量测试指定的镜像源或镜像源列表
npmir test https://mirrors.tuna.tsinghua.edu.cn/ 淘宝镜像
# 注意:优先级:-c > --all > 指定的镜像源或镜像源列表
npmir add 清华镜像 https://mirrors.tuna.tsinghua.edu.cn/
npmir del
npmir set
npmir current
npmir ls
npmir -v
npmir --verion
npmir -h
npmir --help