npm 国内源
- https://mirrors.huaweicloud.com/repository/npm/
- https://registry.npm.taobao.org/
查看registry
永久设置
- npm config set registry https://mirrors.huaweicloud.com/repository/npm/
- npm config set registry https://registry.npm.taobao.org/
临时设置
- npm install -g newman --registry=https://mirrors.huaweicloud.com/repository/npm/
其他设置
npm config set disturl https://npm.taobao.org/dist/
npm config set electron_mirror https://npm.taobao.org/mirrors/electron/
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
npm config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/
npm config set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver/
npm config set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver/
npm config set python_mirror https://npm.taobao.org/mirrors/python/
npm config set electron_builder_binaries_mirror https://npm.taobao.org/mirrors/electron-builder-binaries/
npm config set node_sqlite3_binary_host_mirror https://npm.taobao.org/mirrors
# proxy
npm config set proxy http://127.0.0.1:3128
npm config set http-proxy http://127.0.0.1:3128
npm config set https-proxy https://127.0.0.1:3128