npm
npm -------- https://registry.npmjs.org/
yarn ------- https://registry.yarnpkg.com/
cnpm ------- http://r.cnpmjs.org/
taobao ----- https://registry.npm.taobao.org/
nj --------- https://registry.nodejitsu.com/
npmMirror -- https://skimdb.npmjs.com/registry/
edunpm ----- http://registry.enpmjs.org/
全局设置源
npm config set registry https://registry.npm.taobao.org
在命令行里指定源
npm --registry https://registry.npm.taobao.org install [name]
修改 ~/.npmrc
registry = https://registry.npm.taobao.org
python
全局配置
# 清华源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# 或:
# 阿里源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
# 腾讯源
pip config set global.index-url http://mirrors.cloud.tencent.com/pypi/simple
# 豆瓣源
pip config set global.index-url http://pypi.douban.com/simple/
在命令行里指定源
pip install markdown -i https://pypi.tuna.tsinghua.edu.cn/simple