


Introduction and usage of domestic NPM images provided by Taobao_Basic knowledge
May 16, 2016 pm 04:52 PMTaobao’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 add alias:
alias cnpm="npm --registry=http://registry.npm.taobao.org
-- cache=$HOME/.npm/.cache/cnpm
--disturl=http://dist.cnpmjs.org
--userconfig=$HOME/.cnpmrc"
#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.
Sync module
Synchronize a module immediately through the sync command. Only the cnpm command line has this function:
Of course, you can synchronize directly through the web: npm.taobao.org/sync/connect
$ open http://npm.taobao.org/sync/connect
Other commands
Supports all npm commands except publish, such as:

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

What to do if npm react installation error occurs

JavaScript package managers compared: Npm vs Yarn vs Pnpm

An article analyzing package.json and package-lock.json

What should I do if node cannot use npm command?

Let's talk about npm configuration of domestic mirrors (Taobao mirrors)

This article will help you understand the principles of npm

What is the relationship between npm and node.js?
