parm530
9/26/2019 - 8:43 PM

Bundler Error

Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    bundler (= 1.16.1)

    rails (= 5.0.1) was resolved to 5.0.1, which depends on
      bundler (>= 1.3.0, < 2.0)

  Current Bundler version:
    bundler (1.17.3)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?

Could not find gem 'bundler (= 1.16.1)', which is required by gem 'rails (= 5.0.1)', in any of the relevant sources:
  the local ruby installation
  • Need to run bundle install with 1.16.1 but cannot because of the default bundler version?
    • Run bundle _1.16.1_ install
  • Locate the file in the current ruby version and delete it:
    • $ rm ~/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/specifications/default/bundler-2.1.2.gemspec

Command Prompt Commands

# to obtain the path
gem env gempath

# should look like /Users/parms/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0
ls /Users/parms/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/specifications/bundler-*.gemspec
# list all bundler versions
/Users/parms/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/specifications/bundler-unload-1.0.2.gemspec
/Users/parms/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/specifications/default/bundler-1.17.3.gemspec
/Users/parms/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/specifications/default/bundler-2.1.2.gemspec

# copy path to be deleted
rm path_to_delete