1: install cnpm
npm install -g cnpm
2:add config to ~/.npmrc
$ sudo gedit ~/.npmrc
and then copy "registry = http://registry.cnpmjs.org" and paste it to ~/.npmrc
1: install cnpm
npm install -g cnpm
2:add config to ~/.npmrc
$ sudo gedit ~/.npmrc
and then copy "registry = http://registry.cnpmjs.org" and paste it to ~/.npmrc