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

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

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

11条回答
  •  不知归路
    2020-12-04 15:59

    I had this problem but I solved it by installing the version of the ruby that is specified in my gem file using the RVM

        rvm install (ruby version)
    

    After the installation, I use the following command to use the the version that you installed.

        rvm --default use (ruby version)
    

    You have to install bundler by using the following command in order to use the latest version

        gem install bundler 
    

    After the above steps, you can now run following command to install the gems specified on the gemfile

        bundle install
    

提交回复
热议问题