亲测解决Bundler HTTPError Could not fetch specs from

这个问题源于ruby的网站连接不上,解决方法是修改网页地址或者网络配置。

环境

win11 + ruby

问题原文

c 复制代码
Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from 
https://rubygems.org/ due to underlying error <IO::TimeoutError: Failed to open TCP connection to rubygems.org:443 (Blocking operation timed out!) (https://rubygems.org/specs.4.8.gz)>

解决方法

方法一

打开Gemfile,将https改成http,Open the Gemfile and change first line from this:

c 复制代码
source 'https://www.rubygems.org'

to this

python 复制代码
source 'http://www.rubygems.org'

remove the 's' from 'https'.

方法二

一般方法一就可以解决了,如果不行尝试换一个网络:比如手机wifi。

Change it to another network (mobile hotspot)

方法三

关闭ipv6的配置。

参考

https://stackoverflow.com/a/47392700/15329637

https://stackoverflow.com/questions/51201517/ruby-cant-connect-to-rubygems-org

相关推荐
a1117761 天前
星球浏览 漫游(纯html 开源)
前端·开源·html
summerkissyou19871 天前
android -wifi/蓝牙-常见面试题
android·wifi·bluetooth
结网的兔子1 天前
前端开发(前言)——html,css,JavaScript和vue关系
javascript·css·html
前端 贾公子1 天前
CSS 系统颜色和暗黑模式的关系及意义
前端·javascript·vue.js·html
Never_Satisfied1 天前
在HTML & CSS中,如何计算CSS特异性
前端·css·html
雾岛心情1 天前
【Html&CSS】网页设计中的Node.JS 安装
css·html
长城20241 天前
HTML5 中<meter>标签的属性说明
html·html5·meter·meter标签·meter属性·meter标签属性
m5655bj2 天前
通过 C# 将 PPT 文档转换为 HTML 格式
c#·html·powerpoint
你怎么知道我是队长2 天前
前端学习---HTML---文本标签
前端·学习·html
a1117762 天前
卡通风格 UI 组件库html (TRIZ UI Kit [特殊字符])
前端·ui·html