Skip to main content

Command Palette

Search for a command to run...

Fixing the error: can't find gem bundler

Updated
1 min read
Fixing the error: can't find gem bundler
D

Software Engineer | Elixir | Phoenix | Ruby | Ruby On Rails | Technical Writer.

With over a decade of experience in software engineering, I am always improving my technical knowledge and soft skills to positively impact a company's results and people's lives by building and delivering impactful products through code.

I have worked with Ruby for several years on various projects, including web applications, API, and microservices. I have an understanding of Ruby's core concepts, syntax, and best practices. I have also worked with popular Ruby web frameworks, such as Ruby on Rails and Sinatra, and I'm familiar with popular Ruby libraries and gems for various use cases. Additionally, I have experience with testing frameworks like Minitest, RSpec, and Capybara.

Languages: Portuguese (native), English (B1/B2)

Greetings friends!

If you are in a rails project and need to install the gem bundler, but you got this error:

can't find gem bundler (>= 0.a)

The best way to install the gem bundler and avoid or fix this error is to install the bundler gem by getting the specific version contained in the Gemfile.lock with the command below:

gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"

I hope that this content helps you! See you in the next article!