cnrm
can help you easy and fast switch between different npm registries,
now include: npm
, cnpm
, taobao
, nj(nodejitsu)
.
just add .yarnrc in your project’s directory and write there:
registry “http://your.registry”
Or you can configure it in your HOME directory's .yarnrc
$ npm install -g cnrm
$ cnrm 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/
skimdb -- https://skimdb.npmjs.com/registry
$ cnrm use cnpm //switch registry to cnpm
Registry has been set to: http://r.cnpmjs.org/
Usage: cnrm [options] [command]
Commands:
ls List all the registries
current Show current registry name
use <registry> Change registry to registry
help Print this help
Options:
-h, --help output usage information
-V, --version output the version number
If you find cnrm is useful and is a experienced node.js developer, then you can help maintain cnrm. If you have the interest you can reach me through email.
MIT