nrm 安装与使用
nrm 是 npm 的镜像源管理工具,可以用来切换 npm 镜像源。
安装 nrm
# 使用 npm 全局安装
npm i -g nrm
nrm 命令
# 查看镜像列表,带 * 号为当前镜像
nrm ls
# 查看当前所在镜像
nrm current
# 切换镜像源
nrm use taobao
# 添加镜像源,mirror 为镜像名,http://xxx 为镜像源地址
nrm add mirror http://xxx
# 删除镜像源
nrm del mirror
# 镜像测速
nrm test taobao