Taobao’s NPM image is a complete npmjs.org image. You can use this instead of the official version (read-only). The synchronization frequency is currently every 15 minutes to ensure that it is as synchronized with the official service as possible.
1. The current registry.npm.taobao.org is fully synchronized from registry.npmjs.org.
2. The current running version of npm.taobao.org is: cnpmjs.org@0.4.1
3. The system runs on Node.js@v0.11.12.
Instructions for use
The default npm can be replaced by the customized cnpm (gzip compression support) command line tool:
#Or alias it in .bashrc or .zshrc
$ echo 'n#alias for cnpmnalias cnpm="npm --registry=registry.npm.taobao.org
--cache=$HOME/. npm/.cache/cnpm
--disturl=http://dist.cnpmjs.org
--userconfig=$HOME/.cnpmrc"' >> ~/.zshrc && source ~/.zshrc
Install template
Install all modules from registry.npm.taobao.org. When installing, it is found that the installed modules have not been synchronized. Taobao NPM will automatically synchronize in the background, and will let you proceed from the official NPM registry.npmjs.org Install. Next time you install this module, it will be installed directly from Taobao NPM.
Synchronize a module immediately through the sync command. Only the cnpm command line has this function:
Other commands
Supports all npm commands except publish, such as: