1
1

More than 3 years have passed since last update.

macにrailsがインストールできない

Posted at

この記事について

プログラミングの勉強をしています。
勉強の過程で得た知識を、忘れないようまとめておくのと共に、誰かの助けになればと思います。

「rails -v」が上手くいかない!

(base) hoge@MacBook-Pro ~ % rails -v
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.

調べた通りにrailsをインストールしたのに、rails -vを何度実行してもこのエラーが出てしまいます。

対処法

rbenv rehash

このコマンドを実行し、再度rails -vを実行すると

(base) hoge@MacBook-Pro ~ % rails -v
Rails 6.0.3.1

上手くいきました!!

参考

https://qiita.com/amuyikam/items/313bc89c1de320a4257e
https://github.com/railsgirls-jp/coach.info/issues/32

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1