Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gem::InstallError: gem-wrappers is not installed in GEM_HOME during gem cleanup

How do I avoid gem cleanup specific errors. I see the following error while performing gem cleanup. Gem::InstallError: gem-wrappers is not installed in GEM_HOME

gem cleanup
Cleaning up installed gems...
Attempting to uninstall gem-wrappers-1.2.4
Unable to uninstall gem-wrappers-1.2.4:
    Gem::InstallError: gem-wrappers is not installed in GEM_HOME, try:
    gem uninstall -i /home/ec2-user/.rvm/gems/ruby-2.1.2@global gem-wrappers
Attempting to uninstall gem-wrappers-1.2.4
Unable to uninstall gem-wrappers-1.2.4:
    Gem::InstallError: gem-wrappers is not installed in GEM_HOME, try:
    gem uninstall -i /home/ec2-user/.rvm/gems/ruby-2.1.2@global gem-wrappers
Clean Up Complete
like image 745
Rpj Avatar asked Nov 09 '22 22:11

Rpj


1 Answers

The cleanup command removes old versions of gems from GEM_HOME that are not required to meet a dependency. If a gem is installed elsewhere in GEM_PATH the cleanup command won’t delete it.

You can try using sudo gem cleanup

Reference gem cleanup

Another Cleanup gems

like image 87
Mehul Gurjar Avatar answered Nov 15 '22 04:11

Mehul Gurjar