美文网首页
MacOS "Rails is not currently in

MacOS "Rails is not currently in

作者: 二十尹 | 来源:发表于2022-01-13 13:42 被阅读0次

Firstly, I have installed rails via:

sudo gem install rails

Everything seems to install correctly, but when I type the rails command (rails s, rails -v, etc), I get this error:

Rails is not currently installed on this system. To get the latest version, simply type:
    $ sudo gem install rails
You can then rerun your "rails" command.

The result of which rails is /usr/bin/rails
I tried many different ways that I found on the Internet.
And finally, that works for me:

gem update --system

then,type sudo gem install rails again

Oh yeah
Hope this helps~

相关文章

网友评论

      本文标题:MacOS "Rails is not currently in

      本文链接:https://www.haomeiwen.com/subject/musncrtx.html