nrm是什么

1.npm源管理器,可自定义增删改查npm源

2.在N个npm源里快速切换

3.npm源测速功能

安装

1
npm install -g nrm

使用

列出已有npm源

1
nrm ls //带*号的是当前使用的源

切换

1
nrm use taobao //切换到taobao源

已经成功切换到taobao源 这时候执行npm i命令就会从taobao源上下载包并安装

新增

1
npm add <registry> <url> [home]

删除

1
nrm del <registry>

测速

测单一速度

1
nrm test <registry>

测全部速度

1
nrm test

github

github.com/Pana/nrm