0

I am trying to uninstall rails from my computer.Whenever I run the command gem uninstall rails ,it gives me the following error

ERROR: While executing gem ... (Gem::InstallError) cannot uninstall, check gem list -d rails

Jack welch
  • 1,707
  • 4
  • 25
  • 29

2 Answers2

1

Does this cover your question? Uninstall Rails completely

Community
  • 1
  • 1
ksu
  • 608
  • 4
  • 11
1

It is possible that you have multiple versions of Rails installed in your system. Thus, that command might have failed by not deciding which Rails version you intended to remove.

Check your Rails versions by running gem list -d rails or gem list | grep rails and note the versions (Example, I have 3.2.8, 3.2.5, 4.0.0).

To uninstall any version use:

gem uninstall rails -v 3.2.8
kiddorails
  • 12,961
  • 2
  • 32
  • 41