Tuesday, 15 January 2019

Gem uninstall bundler version And install version

$ gem list bundle

bundler (2.0.1)
bundler-audit (0.6.0)
bundler-unload (1.0.2)
rubygems-bundler (1.4.4)

----------------------------------------------------------------------------

$ gem uninstall bundler -v '2.0.1'

ERROR:  While executing gem ... (Gem::InstallError)
    bundler is not installed in GEM_HOME, try:
gem uninstall -i /home/bittern-i5-3/.rvm/gems/ruby-2.4.1@global bundler

-----------------------------------------------------------------------------
 $ gem uninstall -i /home/bittern-i5-3/.rvm/gems/ruby-2.4.1@global bundler
-----------------------------------------------------------------------------
$ gem install bundler -v '~>1.17.1'



https://dev.to/st0012/completely-remove-the-default-bundler-from-ci-environment-j0c