rails c 時のエラー(Gem::GemNotFoundException)


rails c コマンドを実行したさいに以下のエラーが出た。

(Gem::GemNotFoundException)

ググってみると、rails sコマンド実行のさいも吐かれるみたい。

以下のコマンドを実行すると解決できた。
gem install bundler
bundle install

参考URL:https://qiita.com/yukiweaver/items/9f07b32f31c7e863fe1c
https://stackoverflow.com/questions/52051122/cant-find-gem-railties-0-a-with-executable-rails-gemgemnotfoundexceptio#