LoginSignup
0
0

More than 1 year has passed since last update.

Could not reach host index.rubygems.org. Check your network connection and try again. と言うエラーについて。

Last updated at Posted at 2021-11-23

Cloud9を使ってrailsチュートリアルを進めているのですが、Could not reach host index.rubygems.org. Check your network connection and try again.と言うエラーについて教えていただきたいです。

発生している問題・エラー

$ bundle install
$ bundle update

などを叩くと

Could not reach host index.rubygems.org.
Check your network connection and try again. 

と表示されます。

自分で試したことといえば数分時間をおいてから新しくディレクトリを作り直すことしかできず、(お手上げ)しかし、それでなぜかエラーが表示されなくなり、問題なく先ほどのコードを叩くとinstall されてupdate出来てしまいました。

そこで、なぜ解決できたのか質問させてください。

hostに行けないとエラーが出た場合(Could not reach host index.rubygems.org. )、何をするべきか、networkを確認しろ(Check your network connection and try again. )と出た場合も何を確認して、どう対処するべきかを教えていただけないでしょうか。よろしくお願い致します。

…単純に更新されてなかっただけとかなのかなw

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0