Solved-Ruby on Rails Error, "warn_for_outdated_bundler_version" You must use Bundler 2 or greater with this lockfile"

Error: "warn_for_outdated_bundler_version': You must use Bundler 2 or greater with this lockfile."

Solution

When developing using Ruby on Rails you might experience this error "warn_for_outdated_bundler_version': You must use Bundler 2 or greater with this lockfile." when starting Rails Server (rails s -b 0.0.0.0). What this error is telling you is that the version of Bundler installed on your computer (along with other dependencies ) is different from the version of Bundler defined in the Gemfile.lock file or in the Gemfile. One way to solve this problem is by backing up your Gemfile.lock file and eventually removing the Gemfile.lock file from your project, then in your command console, type: bundler update (bundler install might resolve this issue but if the version of bundler defined in the Gemfile is not equal to the version installed on your computer then this problem might persist).
Technology published

Buy Me Coffee


Was this page helpful?

Yes Yes! this solution to the problem was helpful. No No! this solution to the problem was not helpful..
Buy Me Coffee


Please Login to Continue

How to Draw Realistic Photos (E-Book)

How to Draw Realistic Photos (E-Book)

$1

Why Software Development Need Ethics to Succeed (E-Book)

Why Software Development Need Ethics to Succeed (E-Book)

$1

How to Make a Social Media Website in Easy Steps

How to Make a Social Media Website in Easy Steps

$1




© 2020 - ErnesTech - Privacy