Domestic npm source mirror (npm accelerated download)
Specify npm mirror
The official original mirror URL of npm is: https://registry.npmjs.org/
Taobao NPM mirror: https://registry.npm.taobao.org
Alibaba Cloud NPM mirror: https://npm.aliyun.com
Tencent Cloud NPM mirror :https://mirrors.cloud.tencent.com/npm/HUAWEI
CLOUD NPM mirror: https://mirrors.huaweicloud.com/repository/npm/NetEase
NPM mirror: https://mirrors.163.com/npm/
Open source mirror station of University of Chinese Academy of Sciences: http://mirrors.ustc.edu.cn/Open
source mirror station of Tsinghua University: https://mirrors.tuna.tsinghua.edu.cn/Tencent
, Huawei, Ali’s mirror stations are basically complete
Use Taobao mirror source to speed up NPM
npm config set registry https://registry.npm.taobao.org
Use Alibaba Cloud mirror source to speed up NPM
npm config set registry https://npm.aliyun.com
Accelerate NPM using Tencent Cloud image source
npm config set registry http://mirrors.cloud.tencent.com/npm/
Use HUAWEI CLOUD image sources to speed up NPM
npm config set registry https://mirrors.huaweicloud.com/repository/npm/
To use that mirror, you only need npm config set registry + the corresponding mirror URL
npm config set registry
View the current mirror source : npm config get registry
npm config get registry
It is recommended to use the above method to specify the npm image. Of course, the method is not unique. You can also use nrm to specify the npm image.
what is nrm
nrm is an npm source manager that allows you to quickly switch between npm sources.
install nrm
npm install -g nrm
use
View optional source
nrm ls
to switch
If you want to switch to taobao source, execute the command
nrm use taobao
test speed
nrm test