各种包管理器使用国内镜像加速下载

1. Python PyPI (pip)

添加豆瓣源

$ vim ~/.pip/pip.conf

[global]
index-url = http://pypi.douban.com/simple 

2. Node NPM

使用cnpmjs

vim ~/.npmrc

registry = http://registry.cnpmjs.org

3. Ruby Gem

使用淘宝源

$ gem sources --remove https://rubygems.org/
$ gem sources -a http://ruby.taobao.org/
(完)
comments powered by Disqus
Powered by GitHub  &&  Jekyll | CC BY-NC-SA