gpt4 book ai didi

ruby-on-rails - Gem::RemoteFetcher::FetchError 与 gems.github.com

转载 作者:太空宇宙 更新时间:2023-11-03 17:43:13 25 4
gpt4 key购买 nike

我遇到了一个错误:

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

当我尝试安装 bundler 时:

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 Forbidden问题。想法来自:Getting a While executing gem ... (Gem::RemoteFetcher::FetchError) 503 error when attempting to install rails

关于如何解决或为什么会出现此错误的任何想法。

最佳答案

更改您的 gem 来源并重试:

gem sources --remove http://gems.github.com/
gem sources -a https://rubygems.org/

关于ruby-on-rails - Gem::RemoteFetcher::FetchError 与 gems.github.com,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50161322/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com