亲测解决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

相关推荐
曦月合一2 小时前
html中iframe标签 隐藏滚动条
前端·html·iframe
m0_528723819 小时前
HTML中,title和h1标签的区别是什么?
前端·html
Dark_programmer9 小时前
html - - - - - modal弹窗出现时,页面怎么能限制滚动
前端·html
ACGkaka_10 小时前
抓包工具(三)Wireshark代理抓包Java程序的HTTPS请求
java·https·wireshark
哑巴语天雨11 小时前
前端面试-网络协议篇
websocket·网络协议·http·面试·https
烂蜻蜓12 小时前
Uniapp 设计思路全分享
前端·css·vue.js·uni-app·html
九天轩辕15 小时前
HTTPS 通信流程
https
yourkin66616 小时前
HTTPS(下)
服务器·网络协议·https
anddddoooo1 天前
域内证书维权
服务器·网络·网络协议·安全·网络安全·https·ssl
八角丶1 天前
元素尺寸的获取方式及区别
前端·javascript·html