interlude

プログラミングや私的なこと

bundle installが失敗した時の解決法

やったこと

gemのバージョンを最新にした。

gem update --system

エラーメッセージは以下のとおり

Gem::RemoteFetcher::FetchError: Errno::ETIMEDOUT: Operation timed out - connect(2) for "rubygems.global.ssl.fastly.net" port 443 (https://rubygems.org/gems/guard-rspec-4.6.3.gem)
An error occurred while installing guard-rspec (4.6.3), and Bundler cannot
continue.
Make sure that `gem install guard-rspec -v '4.6.3'` succeeds before bundling.

gem install guard-rspec -v '4.6.3'したけど同じように失敗したので、ひょっとして、と思いgemを最新のものにしたら問題無くbundle install出来た。