美文网首页
Ruby Gems不能连接到国内镜像的解决方案

Ruby Gems不能连接到国内镜像的解决方案

作者: 无影行者 | 来源:发表于2019-07-25 14:56 被阅读0次

1. 删除原gem源

gem sources --remove https://rubygems.org/

2.添加国内源

gem sources -a http://gems.ruby-china.com/
image

原因如图所示, 服务域名更换了,把gem sources -a https://gems.ruby-china.org/换成gem sources -a https://gems.ruby-china.com/即可。

3.打印是否替换成功

gem sources -l

4.安装高版本的pod

sudo gem install cocoa pods

相关文章

网友评论

      本文标题:Ruby Gems不能连接到国内镜像的解决方案

      本文链接:https://www.haomeiwen.com/subject/kmshrctx.html