NRM镜像源管理工具

134 阅读1分钟

NRM用于快速切换镜像地址,因为很多镜像都是国外地址,访问比较慢.

安装NRM

# windows系统安装 : 
npm install -g nrm

# Mac系统安装 : 
sudo npm install -g nrm

命令

查看可选源

nrm ls

image.png

测试源响应时间

nrm test

image.png

切换镜像源

# 切换taobao
nrm use taobao

查看当前是哪个源

nrm current

增加定制源

# nrm add 源名 地址
# nrm add test_nrm http://192.168.10.1

删除源

# nrm del 源名