LoginSignup
20

More than 5 years have passed since last update.

bundle installができない

Last updated at Posted at 2018-06-19

参考になったと思ったらいいねお願いします!

背景

pcを新調した際に急いで環境構築をしてたらなにか抜けてたのかな〜
rails newを実行した際にbundle install されるんですが、そこでエラーが起きてしまっていました。

なんでやねーん。。。

bundle installをするとエラーが出る

出ていたエラーは以下

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/^C

解決方法

以下のコマンドを実行すればbundle installが通るようになりました。

$ gem update --system

最後に

参考になったと思ったらいいねお願いします!
修正した方がわかりやすい点があれば修正リクエストもお待ちしてます!

参考記事

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
20