代码之家  ›  专栏  ›  技术社区  ›  Wellington1993

Gem::RemoteFetcher::gems的FetchError。github。com公司

  •  1
  • Wellington1993  · 技术社区  · 7 年前

    我在以下方面出错:

    ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
    

    当我尝试安装捆绑程序时:

    gem install bundler
    

    错误:

    ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
        bad response Forbidden 403 (http://gems.github.com/quick/Marshal.4.8/bundler-0.3.0.gemspec.rz)
    

    我立刻用这个命令解决了:

     gem sources --remove "http://gems.github.com"
    

    因为这是403禁止的问题。 创意来源: Getting a While executing gem ... (Gem::RemoteFetcher::FetchError) 503 error when attempting to install rails

    任何解决方法或发生此错误的原因的想法。

    2 回复  |  直到 7 年前
        1
  •  3
  •   NARKOZ    7 年前

    更改gem源并重试:

    gem sources --remove http://gems.github.com/
    gem sources -a https://rubygems.org/
    
        2
  •  1
  •   daniel0318    6 年前

    当rubygems页面被主服务(尤其是https连接)阻止时,就会发生这种情况。在Gemfile中更改为https,或要求他们取消阻止ruby。组织和api。红宝石组织页面。