How do I downgrade my gem?

How do I downgrade a gem version?

If you want to automate it in a script (I had the same problem after a gem update ), just do the following:

  1. Install your favored version (if you don’t have already) gem install compass -v 1.2.3.
  2. Uninstall newer versions. gem uninstall compass -v ‘>1.2.3’ –force.

How do I change my bundle version?

How to update the bundler version in a Gemfile. lock

  1. Install the latest bundler version: gem install bundler Fetching bundler-2.1.2.gem Successfully installed bundler-2.1.2 1 gem installed.
  2. Update the bundler version in you Gemfile.lock : bundle _2.1.2_ update –bundler.

How do I use the old version of bundler?

0 or higher, and you need to have RubyGems 2.5. 0 or higher. You can check your Ruby version by running ruby –version , and you can check your RubyGems version by running gem –version . If you need to upgrade Ruby, use your ruby version manager’s instructions.

How do I downgrade Ruby from Windows?

As others have mentioned, its hard to come up with exact solution, in general to downgrade or switch versions for a user:

  1. Install Ruby 1.8.7 (or locate it on your system if you have it already)
  2. Edit your .bash_profile or .bashrc file to update your $PATH so that the 1.8.7 executable is found first. …
  3. 7/bin/ruby.
IT IS INTERESTING:  What jewelry was worn in the 50's?

How do I uninstall a specific version of a gem?

“ruby remove specific gem” Code Answer

  1. The command is simply: gem uninstall <gem-name>
  2. # for a general uninstall.
  3. NOTE: maybe you need sudo, depens on your user rights. like so.
  4. sudo gem uninstall <gem-name>
  5. # remove all old versions of the gem.

How do I change my default gem?

How to change Bundler default version

  1. gem env – try to search in provided list under GEM PATHS, in specifications/default.
  2. remove there bundler-VERSION. gemspec.
  3. install bundler, if you don’t have specific: gem install bundler:VERSION –default.

How do I update my GEM version?


  1. Update RubyGems. To update to its latest version with: gem update –system.
  2. Install gems. To install a gem (Ruby package), run: gem install <gemname> …
  3. List installed gems. gem list. …
  4. Update installed gems. To update all gems or a particular gem: gem update [<gemname>]
  5. Remove old gem versions.

How do I check my GEM version?

Since your goal is to verify a gem is installed with the correct version, use gem list . You can limit to the specific gem by using gem list data_mapper . To verify that it’s installed and working, you’ll have to try to require the gem and then use it in your code.

How do I uninstall gem bundler?

Installation and usage

To uninstall Bundler, run gem uninstall bundler . See for the full documentation.

How do I uninstall default bundler?

You have to delete the . gemspec file corresponding to the default gem you want to delete. So first, locate where those files are. Delete the one you don’t need.

IT IS INTERESTING:  Can you get Beldum in Omega Ruby?

How do I install a specific bundler?

If not, you can install Bundler to the project SDK in one of the following ways:

  1. Select Tools | Bundler | Install Bundler from the main menu.
  2. Press Ctrl twice and execute the gem install bundler command in the invoked popup.
  3. Open the RubyMine terminal emulator and execute the gem install bundler command.

How do I use the lower version of Ruby?

To use any of the versions, simply type rvm <version> or rvm use <version> and to know which Ruby you are currently using type the command below. You should now see the Ruby version you chose previously.

How do I uninstall Ruby from Windows?

Control Panel > System > Environment Varables > remove any paths in the PATH environment variable that have installations of Ruby. Control Panel > Programs and Features > Uninstall any Ruby Installer apps listed. Delete the Windows folders where installed.

How do I change Ruby to Rbenv?

Get started with rbenv

  1. List the installed Ruby versions. To list the installed Ruby versions in your machine with rbenv, run the following command: rbenv version. …
  2. Install a Ruby version. To install a new Ruby version, use the rbenv install command: rbenv install VERSION. …
  3. Use a specific Ruby version for a project.