npm:
- config命令:npm config set registry https://registry.npm.taobao.org
- 命令行指定:npm --registry=https://registry.npm.taobao.org install -g bower
- 编辑~/.npmrc加入以下内容:registry=https://registry.npm.taobao.org
nvmw:
set "NVMW_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node"