nrm安装与配置记录

版权声明:希望对您有帮助~ https://blog.csdn.net/tangkthh/article/details/89668844

nrm

nrm 是一个 npm 源管理器,允许你快速地在 npm 源间切换去管理安装包;

安装nrm

在命令行执行命令,全局安装nrm;

npm install nrm -g

使用

执行命令 nrm ls 查看可选的源;

nrm ls

带 的是当前使用的源,上面的输出表明当前源是官方源;

切换

切换到taobao源,执行命令;

nrm use taobao

测试速度

你还可以通过 nrm test npm 测试相应源的响应速度;

增加

你可以增加定制的源,执行命令 nrm add <registry> <url>  ,其中registry为源名,url为源的路径;

删除

执行命令 nrm del <registry> 删除对应的源。

猜你喜欢

转载自blog.csdn.net/tangkthh/article/details/89668844
nrm