How to fix “Your Ruby version is 2.3.0, but your Gemfile specified 2.2.5” while server starting

前端 未结 11 1315
面向向阳花
面向向阳花 2020-12-04 15:30

I am getting this error while running server, how do I fix this?

11条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 15:52

    You better install Ruby 2.2.5 for compatibility. The Ruby version in your local machine is different from the one declared in Gemfile.

    If you're using rvm:

    rvm install 2.2.5
    rvm use 2.2.5
    

    else if you're using rbenv:

    rbenv install 2.2.5
    rbenv local 2.2.5
    

    else if you can not change ruby version by rbenv, read here

提交回复
热议问题