美文网首页
2019-01-31安装gem sources 源问题

2019-01-31安装gem sources 源问题

作者: JW_T | 来源:发表于2019-01-31 16:49 被阅读9次

前言:

安装ruby替换国内淘宝源的时候cmd报错:

Error fetching https://ruby.taobao.org/:

bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)

原因:

原来淘宝的gem源已经停止维护,现在由ruby-china提供镜像服务

解决方法:

把地址换成:https://gems.ruby-china.com

gem source -a https://gems.ruby-china.com

    1

安装完以后,输入以下命令查看是否替换成功

gem sources -l

    1

若结果是:

*** CURRENT SOURCES ***

https://gems.ruby-china.com

  

相关文章

网友评论

      本文标题:2019-01-31安装gem sources 源问题

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