1

我确实在堆栈溢出中发现了同样的问题,我确实尝试了他们的一些解决方案,但没有一个对我有用。我尝试过的一些解决方案是,

1) 删除代理
2) 将 gem 文件的源从“ https://rubygems.org ”更改为“ http://rubygems.org

这些都不能为我解决这个问题。以下是我运行捆绑安装时遇到的错误。注意:我以这种方式安装 gems 已经有一段时间了。我最近才开始收到此错误。有谁知道为什么会发生这种情况?提前致谢!

The dependency tzinfo-data (>= 0) will be unused by any of the platforms 
Bundler is installing for. Bundler is installing for ruby but the dependency 
is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those 
platforms to the bundle, run `bundle lock --add-platform mingw, mswin, 
x64_mingw, jruby`.
Fetching source index from https://rubygems.org/

Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch 
specs from https://rubygems.org/
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch 
specs from https://rubygems.org/
Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch 
specs from https://rubygems.org/
Could not fetch specs from https://rubygems.org/

Process finished with exit code 17

更新

我去了网站http://isup.me/rubygems.org并收到了消息,

It's just you. http://rubygems.org is up. 
4

1 回答 1

0

按照此处给出的说明进行操作后,我发现我并没有完全删除我的代理设置。

所以感谢这位用户,我能够解决我的问题!

于 2017-04-15T15:54:12.987 回答