gem install bundler
とgem install rails
を行いました。
rbenv versions
で確認しました。
rbenv --version
で確認しました。
bundle install
のコマンド入力により下記エラーが発生
An error occurred while installing nio4r (2.5.9), and Bundler cannot continue.
ググって下記コマンド入力
sudo gem install nio4r
An error occurred while installing puma (5.6.5), and Bundler cannot continue.
のエラーに対しては下記コマンドを入力
sudo gem install puma -v '5.6.5'
その後Gemfileにて
# Use the Puma web server [https://github.com/puma/puma]
gem "puma", "~> 5.0"
という記述から
# Use the Puma web server [https://github.com/puma/puma]
gem "puma", "~> 5.6.5"
に変更しました
再度
bundle install
と打つと成功
An error occurred while installing nio4r (2.5.9), and Bundler cannot continue.
上記エラー分は何度も表示されたので、表示されたモジュール名?をひたすらインストールしました。