LoginSignup
1
0

More than 3 years have passed since last update.

Rails をアンインストールする時にエラーが出た場合の対処方法

Posted at

エラー発生

$ gem uninstall railties -v '6.0.2.2'

を実行するとこんなエラーが

ERROR: While executing gem ... (Errno::ENOTEMPTY)
Directory not empty @ dir_s_rmdir - /Users/ユーザ名/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rails-6.0.2.2

原因はインストールの際に管理者権限で作成していたから

解決方法

$ sudo gem uninstall railties -v '6.0.2.2'

これだけでした。

1
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
1
0