Can't run rails server after accidentally running $ gem update --system

前端 未结 2 1815
故里飘歌
故里飘歌 2021-02-07 09:58

I ran gem update --system thinking it would solve a problem I was having, and now I can\'t run rails server. It won\'t load and instead, I keep getting

相关标签:
2条回答
  • 2021-02-07 10:08

    Seems like the latest version of Rubygems is buggy.

    You just have to revert back to an older version with the following command and everything should work fine :

    gem update --system 1.8.24
    
    0 讨论(0)
  • 2021-02-07 10:22

    I had the same issue today. Updating bundler to the latest version fixed the problem:

    gem update bundler
    

    And if you are running rbenv

    rbenv rehash
    
    0 讨论(0)
提交回复
热议问题