MacOS "Rails is not currently in

2022-01-13  本文已影响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~
上一篇下一篇

猜你喜欢

热点阅读