NPM is a package management tool installed along with NodeJS. We often use it to download third-party packages to our local machine.
But as many people who have used NPM probably know, downloading third-party packages in China is extremely slow.
Today I recommend using the Taobao NPM mirror. It is a complete npmjs.org mirror. You can use it to replace the official version (read-only). The synchronization frequency is currently once every 10 minutes to ensure synchronization with the official service as much as possible.
Taobao NPM mirror address:https://npm.taobao.org/

Usage Instructions
You can use the cnpm command-line tool customized by the Taobao NPM mirror (with gzip compression support) to replace the default npm:
npm install -g cnpm --registry=https://registry.npmmirror.com
In this way, you can use the cnpm command to install modules:
$ cnpm install [name]
Examples
Install the Express development framework:
$ cnpm install express
Other Mirrors
- Open source mirrors:http://npm.taobao.org/mirrors
- Node.jsMirrors:http://npm.taobao.org/mirrors/node
- alinode mirror:http://npm.taobao.org/mirrors/alinode
- phantomjs mirror:http://npm.taobao.org/mirrors/phantomjs
- ChromeDriver mirror:http://npm.taobao.org/mirrors/chromedriver
- OperaDriver mirror:http://npm.taobao.org/mirrors/operadriver
- Selenium mirror:http://npm.taobao.org/mirrors/selenium
- Node.jsDocumentation mirror:http://npm.taobao.org/mirrors/node/latest/docs/api/index.html
- NPM mirror:https://npm.taobao.org/mirrors/npm/
- electron mirror:https://npm.taobao.org/mirrors/electron/
- node-inspector mirror:https://npm.taobao.org/mirrors/node-inspector/