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?

More than 3 years have passed since last update.

railsのversion確認でエラーが出た時

Posted at
$gem install rails -v 5.2.3

でinstallして

でversion確認すると

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.

んんんん、さっきインストールしたよな?
ま、この通りやってみるか

実行

また同じエラーが出ました

#色々試してみました

上を参考にさせてもらって試してみました

けど全く同じエラー

##そうだ、passを確認

~/.rbenv/shims/rails
~/.rbenv/shims/rails

うん、全く同じ
rubyのversionを確認

ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-darwin19]

出るやんどういう事?

##解決策

色々調べた結果、アプリを再起動してみた
そして

すると

Rails 5.2.4.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?