0
0

More than 3 years have passed since last update.

rails コマンドが使えなくなった時の対処法

Posted at

rubyのバージョンを上げたところ、rails s しようとしたら、コマンドが使えなくなった。

$ rails --version rbenv: rails: command not found
The `rails' command exists in these Ruby versions:
2.6.5

結論 gem 'rails' をインストールしよう

1.gem update --system
2.gem install bundler
3.gem install rails

ターミナルで rails -vを打ち込み、Rails 5.2.3が表示されたらOKです。
 

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