Solve the problem of NPM downloading and installing the third-party package slowly in China

Time:2020-5-22

1、 Questions

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.

2. Solutions

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]

Recommended Today

Share the installation steps of Oracle 11g client (picture and text details)

The installation steps of Oracle 11g client are as follows: Download address:// www.jb51.net/database/167737.html First unzip the downloaded zip file and run setup.exe Documents. After step 4, if there is an error, just click ignore all. After the above steps are completed, it’s time to wait for the Oracle installation. Now that’s it 1。 After installing […]