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

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

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

11条回答
  •  死守一世寂寞
    2020-12-04 16:05

    A problem I had on my Mac using rbenv was that when I first set it up, it loaded a bunch of ruby executables in /usr/local/bin - these executables loaded the system ruby, rather than the current version.

    If you run

    which bundle

    And it shows /usr/local/bin/bundle you may have this issue.

    Search through /usr/local/bin and delete any files that start with #!/user/bin ruby

    Then run

    rbenv rehash

提交回复
热议问题