nrm的安装与使用

273 阅读1分钟

何时使用nrm

需要在不同项目中使用不同的npm镜像源时,可以使用nrm管理

安装nrm

npm install -g nrm

查看可选的镜像源

nrm ls

image.png

使用镜像源

nrm use taobao // 淘宝镜像为例

增加镜像源

nrm add [镜像名] 镜像地址

删除镜像源

nrm del [镜像名]

测试镜像源地址的速度

nrm test [镜像名]