0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Rails is not currently installed on this system. To get the latest version, simply type:

Posted at

以下のようなコメントが出た場合

$ 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 -v

順番を確認するらしい

$ which -a rails
/usr/bin/rails
/Users/your-name/.rbenv/shims/rails

これだとエラーが出る
⭐️ターミナル再起動

これで順番が入れ替わる

$ which -a rails
//順番が入れ替わる
$ /Users/username/.rbenv/shims/rails
  /usr/bin/rails

これだとrailsコマンドが実行される

$ rails -v

出力

Rails 8.0.1
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?