相关疑难解决方法(0)

Ruby 无法连接到 ruby​​gems.org

我已经在 J​​ekyll 网站上工作了一个月,没有出现任何问题,但从本周开始,每次我尝试运行时都会bundle install收到错误Bundler::HTTPError Could not fetch specs from https://rubygems.org。我使用的是 macOS 10.13,ruby 2.5.1。

\n\n

这是我的输出ruby -ropen-uri -e \'eval open("https://git.io/vQhWq").read\'

\n\n
Here\'s your Ruby and OpenSSL environment:\n\nRuby:           2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]\nRubyGems:       2.7.7\nBundler:        1.16.2\nCompiled with:  OpenSSL 1.0.2o  27 Mar 2018\nLoaded version: OpenSSL 1.0.2o  27 Mar 2018\nSSL_CERT_FILE:  /usr/local/etc/openssl/cert.pem\nSSL_CERT_DIR:   /usr/local/etc/openssl/certs\n\nWith that out of the way, let\'s see if you can connect to rubygems.org...\n\nBundler connection to rubygems.org:       failed  \xe2\x9d\x8c  (execution expired)\nRubyGems connection to rubygems.org:      failed  \xe2\x9d\x8c  (timed out (https://rubygems.org))\nRuby …
Run Code Online (Sandbox Code Playgroud)

ruby openssl rubygems bundler

4
推荐指数
1
解决办法
6153
查看次数

安装红宝石宝石时超时

我正在尝试使用安装bundler gem $ gem install bundler.当我执行命令时,收到以下响应:

ERROR:  Could not find a valid gem 'bundler' (>= 0), here is why:
    Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Operation   timed out - connect(2) (https://api.rubygems.org/latest_specs.4.8.gz)
ERROR:  Possible alternatives: bundler
Run Code Online (Sandbox Code Playgroud)

为了确保我不会发疯,我尝试安装nokogiri:

ERROR:  Could not find a valid gem 'nokogiri' (>= 0), here is why:
  Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Operation timed out - connect(2) (https://api.rubygems.org/latest_specs.4.8.gz)
ERROR:  Possible alternatives: nokogiri
Run Code Online (Sandbox Code Playgroud)

和a2z:

ERROR:  Could not find a valid gem 'a2z' …
Run Code Online (Sandbox Code Playgroud)

ruby rubygems

2
推荐指数
4
解决办法
9516
查看次数

标签 统计

ruby ×2

rubygems ×2

bundler ×1

openssl ×1