Download Source of NPM Packages
Introduce how to change the download source of NPM packages.
Download Source
- http://mirrors.cloud.tencent.com/npm/
- https://mirrors.huaweicloud.com/repository/npm//index.json/
- https://registry.npmmirror.com/
Usage
Temporary Modification
- sudo npm install–registry=url-list-in-Download-Source
Permanent modification
- npm config get registry
- npm config set registry url-list-in-Download-Source