I am trying to install the Bundler gem on my Mac. With the command:
sudo gem install bundler
I get the following error:
ERROR: Could not find a
Bundler 2 requires at least Ruby 2.3.0 and RubyGems 2.5.0.
You might get the following error when you try to install bundler for Ruby < 2.3:
ERROR: Error installing bundler:
bundler requires Ruby version >= 2.3.0.
To fix this error upgrade your project's ruby version OR Install the last supported version of Bundler for Ruby < 2.3 by running only below command.
gem install bundler -v '~>1'