💿 个人常用镜像
Homebrew#
NPM#
Ruby#
RVM#
echo "ruby_url=https://cache.ruby-china.com/pub/ruby" > ~/.rvm/user/db
RubyGems#
gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
gem sources -l
https://gems.ruby-china.com
# 确保只有 gems.ruby-china.com
使用 Gemfile 和 Bundler#
bundle config mirror.https://rubygems.org https://gems.ruby-china.com
这样你不用改你的 Gemfile 的 source。
Python#
临时使用#
pip install -i <https://pypi.tuna.tsinghua.edu.cn/simple> some-package
注意,simple
不能少, 是 https
而不是 http
设为默认#
升级 pip 到最新的版本 (>=10.0.0) 后进行配置:
pip install pip -U
pip config set global.index-url <https://pypi.tuna.tsinghua.edu.cn/simple>
如果您到 pip 默认源的网络连接较差,临时使用本镜像站来升级 pip:
pip install -i <https://pypi.tuna.tsinghua.edu.cn/simple> pip -U
Atom#
Liunx#
#进入目录
cd /home/你的用户名/.atom
#创建文件并编辑
vim .apmrc
#添加国内源
registry=https://registry.npm.taobao.org
#保存退出
#测试是否成功
apm install --check
Windows#
#进入目录
找到C:\\Users\\用户名\\.atom目录
#创建名为 .apmrc 的文件并编辑
type nul>.apmrc
#添加国内源
registry=https://registry.npm.taobao.org
strict-ssl=false
#保存退出
#测试是否成功
apm install --check
【推荐】博客园的心动:当一群程序员决定开源共建一个真诚相亲平台
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】Flutter适配HarmonyOS 5知识地图,实战解析+高频避坑指南
【推荐】开源 Linux 服务器运维管理面板 1Panel V2 版本正式发布
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· MySQL索引完全指南:让你的查询速度飞起来
· 一个字符串替换引发的性能血案:正则回溯与救赎之路
· 为什么说方法的参数最好不要超过4个?
· C#.Net 筑基-优雅 LINQ 的查询艺术
· 一个自认为理想主义者的程序员,写了5年公众号、博客的初衷
· 《HelloGitHub》第 111 期
· 使用GcExcel .NET将Excel导出为PDF
· MySQL 字符集、排序规则与查询关系详解
· 【设计模式】外观模式
· 本地搭建一个对嘴AI工具