nrm 安装使用

# nrm 安装使用

# 安装

# 安装nrm
npm install -g nrm

# 使用

nrm -V
# 查看当前nvm版本。

nrm -h
# 显示所有命令。

nrm current
# 显示当前源名称。

nrm use <registry>
# 切换源。

nrm add <registry> <url> [home]
# 添加一个源。比如公司自己的私有源等。

nrm set-auth <registry> <value> [always]
# 设置自定义源的授权信息。

nrm set-email <registry> <value>
# 给自定义源设置路径。

nrm set-hosted-repo <registry> <value>
# 设置发布到自定义源的npm托管仓储。

nrm del <registry>
# 删除自定义源。

nrm home <registry> [browser]
# 浏览器中打开源首页。

nrm publish [options] [<tarball>|<folder>]
# 发布包到自定义源,如果没有使用自定义源,则直接发布到npm。

nrm test [registry]
# 测试源的访问速度。不加registry时,测试所有的。

nrm ls
# 列出npm可选镜像源

nrm use taobao
# 切换npm源为淘宝镜像源