Node Registry Manager
Node Package Manager(npm)镜像源管理工具
cli
Options:
-V, --version output the version number查看版本
-h, --help output usage information帮助
Commands:
-
lsList all the registries 列出所有镜像源nrm ls * npm -------- https://registry.npmjs.org/ yarn ------- https://registry.yarnpkg.com/ cnpm ------- http://r.cnpmjs.org/ taobao ----- https://registry.npm.taobao.org/ nj --------- https://registry.nodejitsu.com/ npmMirror -- https://skimdb.npmjs.com/registry/ edunpm ----- http://registry.enpmjs.org/ -
currentShow current registry name 显示当前源nrm current npm -
use <registry>Change registry to registry 切换使用哪个镜像源nrm use taobao Registry has been set to: https://registry.npm.taobao.org/ -
add <registry> <url> [home]Add one custom registry -
set-auth [options] <registry> [value]Set authorize information for a custom registry with a base64 encoded string or username and pasword -
set-email <registry> <value>Set email for a custom registry -
set-hosted-repo <registry> <value>Set hosted npm repository for a custom registry to publish packages -
del <registry>Delete one custom registry -
home <registry> [browser]Open the homepage of registry with optional browser -
publish [options] [<tarball>|<folder>]Publish package to current registry if current registry is a custom registry. if you're not using custom registry, this command will run npm publish dir -
test [registry]Show response time for specific or all registries测速
nrm test
npm ---- 904ms
yarn --- 799ms
cnpm --- 339ms
* taobao - 242ms
nj ----- Fetch Error
npmMirror 876ms
edunpm - Fetch Error
helpPrint this help