1.1.3 • Published 4 months ago
npmir v1.1.3
欢迎使用npmir!—— 一个高效的npm镜像管理库
本项目若对您有帮助的话,劳烦您动动小指为本项目( 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
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