LoginSignup
0
0

More than 1 year has passed since last update.

rbenvでglobalを使ってもバージョンが切り替わらない

Last updated at Posted at 2021-12-01

原因

  • ホームディレクトリに .ruby-version ファイルがあるため
  • ホームディレクトリで rbenv local コマンドを使ったのが原因
  • おそらくglobalよりもlocalが優先され、ホームディレクトリでlocalが設定されているので強制的に常にlocalが指定されている状況になっていた

解決法

  • ホームディレクトリの .ruby-version フォルダを削除し、再びglobalで再設定する
$ cat ~/.ruby-version
$ rm ~/.ruby-version
$ rbenv global <バージョン>

参考

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