Search code examples
ruby-on-railsrubybundlerruby-upgrade

Upgrade ruby to 2.4.0


I have upgraded Ruby to version 2.4.0 in my Rails app, but when I try to bundle install, I face with the following error:

An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before  

Solution

  • json(1.8.3) is not compatible with ruby 2.4.0. Try using a newer version.

    $ bundle update json