What to do if you get To install the missing version, run `gem install bundler: 2.1.4`

I will summarize what I learned and stumbled every day. If you find any mistakes in the description, please let us know! I'm always helped by other people's articles, so I hope it helps.

What kind of error is it

An error that bundler 2.1.4 is specified in Gemfile.lock, but that version of bundler is not found.

Traceback (most recent call last):
	2: from 
	1: from 
#abridgement
Could not find 'bundler' (2.1.4) required by your /Users/<username>/<Root directory name>/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:2.1.4`

When it happens

It happens when you change the version of Ruby. In rbenv, it is necessary to install gem for each version of Ruby.

approach

gem install bundler -v 2.1.4

Enter and add bundler 2.1.4 to solve it!

reference

https://qiita.com/kodai_0122/items/c4c13e89dd5c4cba1f32 https://qiita.com/YumaInaura/items/64e5721549e4927ce85f https://k-koh.hatenablog.com/entry/2020/01/27/200511

Recommended Posts

What to do if you get To install the missing version, run `gem install bundler: 2.1.4`
What to do if you install Ubuntu
What to do if you get angry with OpenSSL with pyenv install
What to do if you can't install the plugin from the Eclipse marketplace
What to do if the debug gem installation fails
What to do if you get the error message unrecognized selector send to instance "***"
What to do if you get a java.io.IOException in GlassFish
What to do if you can't use the rails command
What to do if you can't get the text of an element in Selenium
What to do if you get the error Couldn't find Item without an ID
What to do if you get a gcc error in Docker
[Rails] What to do if you accidentally install bundle in the production environment in your local environment
What to do if you installed Ruby with rbenv but the version does not change
What to do if you get a DISPLAY error in gym.render ()
[Rails] What to do if you can't get an error message with the errors method
What to do if you forget the root password in CentOS7
What to do if you cannot roll back the migration (UnknownMigrationVersionError)
[Rails] What to do if you can't get parameters with form_with
What to do if you get an error during rails db: reset
What to do if you get an uninitialized constant Likes Controller error
What to do if you don't like the code generated by swagger-codegen-cli
What to do if you get an error when you hit Heroku logs
What to do if you get a MiniMagick vulnerability alert on GitHub
What to do if the server tomcat dies
What to do if you push incorrect information
What to do if Could not find hoge in any of the sources Run `bundle install` to install missing gems. Appears in the docker container
What to do if you get an error with bundle install by entering gem'bcrypt' in your Gemfile
What to do if you can't bundle update and bundle install after installing Ruby 3.0.0 in the Rails tutorial
What to do if you get the error Too long with no output (exceeded 10m0s) on CircleCI
What to do if you get a SQLite3 :: BusyException: database is locked error
What to do if you get Could not locate Gemfile or .bundle / directory
What to do if you can't activate the select box created by bootstrap-select
What to do if you get an error on heroku rake db: migrate
What to do if you get angry if you don't have nokogiri while installing wp2txt
What to do if the rails server doesn't run out on AWS cloud9
What to do if you accidentally create a model
What to do if you get an "A server is already running." Error when you try to start the rails server
What to do if you get a javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake in the IBM JDK
What to do if you get a wrong number of arguments error in binding.pry
What to do if you get a port error when docker-compose up on Mac
What to do if you cannot execute with the command "Java package name / class name"
[Solution] What to do if you get a Docker error'ERROR: Cannot connect to the Docker daemon at unix: ///var/run/docker.sock. Is the docker daemon running?'
What to do if you get the warning "Uniqueness validator will no longer enforce case sensitive comparison in Rails 6.1." in Rails 6.0
# What to do if you accidentally do rails db: migrate: drop
What to do if the adb command cannot be executed
What to do if mysql2 gets a bundle install error
What to do if you don't see the test code error message in the terminal console
What to do if you change the Listen Address from the settings screen with Mattermost docker
What to do if you get a "Cannot Pull Container Error" when starting ECS ​​Fargate
What to do if you get a "302" error in your controller unit test code in Rails
What to do if you get an error in Basic authentication during Rails test code
What to do if you select a JRE in Eclipse and get "The selected JRE does not support the current compliance level 11"
What to do after Vagrant install
What to do if validation doesn't work with the update action
What to do if the Rails page doesn't appear in Rails tutorial 1.3.2
What to do if the Eclipse Maven dependency Jar is wrong
What to do when you run into a docker-compose node_modules problem
What to do if you get a "Mysql2 :: Error: Operand should contain 1 column (s)" error in Rails
[Note] What to do if bundle install in Chapter 3 of the rails tutorial is not possible
What to do if you get a JNI shared library error when trying to build in Eclipse
What to do if you get an [An HTTP request took too long to complete.] Error in Docker.