ruby-on-railsbundlesharetribe

Incorrect ruby version when installing bundle in rails project


I have a problem when running bundle install in the root of sharetribe rails's project. It shows me this error message:

Your Ruby version is 2.4.0, but your Gemfile specified 2.3.1

I tried installing rvm and installing the 2.3.1 version required to run this project but nothing changes and it still throwing this output.

Have anyone faced this problem before ?


Solution

  • Your Ruby version is 2.4.0, but your Gemfile specified 2.3.1

    Steps to resolve this issue

    1)rvm install ruby-2.3.1
    
    2)gem install bundler
    
    3)rvm use ruby-2.3.1
    
    4)Bundle install