Alexander Gromnitsky's Blog

Cygwin & gem uninstall

Latest update:

Why is it something always broken under Cygwin?

If your gem uninstall foobar suddenly does nothing under Cygwin's ruby, try running the command as:

$ gem uninstall rubocop --debug
NOTE:  Debugging mode prints all exceptions even when rescued
Exception `Gem::InstallError' at /usr/share/rubygems/rubygems/uninstaller.rb:121 - rubocop is not installed in GEM_HOME, try:
        gem uninstall -i /cygdrive/d/cygwin/alex/.gem/ruby/2.6.0 rubocop

Aha! The last helpful line actually works! Amazing.


Tags: ойті
Authors: ag