In the process of using NPM, it is found that the speed of downloading and installing the third-party package in China is relatively slow.
Use the NPM image of Taobao (address: https://npm.taobao.org/ ）, can solve this problem. Taobao image, it is a complete npmjs.org The synchronization frequency is currently once every 10 minutes to ensure synchronization with the official service as much as possible.
Before use, install cnpm, a command-line tool customized for Taobao NPM image
npm install -g cnpm --registry=https://registry.npm.taobao.org
Then you can install the module with the following command.
cnpm install [name]