$ cnpm install cnpm -g

cnpm: npm client for cnpmjs.org
| Minimum | Recommended | |
|---|---|---|
| NodeJS | 4.0.0 | stable |
$ npm install cnpm -g
If you're in China, maybe you should install it from our China mirror:
$ npm install cnpm -g --registry=https://registry.nlark.com
Support all commands just like npm.
npm$ cnpm sync [moduleName]
$ cnpm doc [name]
$ cnpm doc -g [name] # open git web url directly
$ npm install cnpm -g
# then alias it
$ alias mynpm='cnpm --registry=http://registry.npm.example.com \
--registryweb=http://npm.example.com \
--userconfig=$HOME/.mynpmrc'
cnpm using npminstall by default.
If you don't like symlink mode for node_modules, you can change the installer to original npm.
But you will lose the fastest install speed.
$ cnpm i --by=npm react-native
Copyright 2013 - present © cnpmjs.org | Home |