简体   繁体   中英

How to specify gem version to an older version?

I tried to use a specific version for gem, as specified by Michael Hartl's ruby on rails tutorial.

I typed in $ gem update --system 1.8.24

but i got this output:

Latest version currently installed. Aborting.

How do I prevent this command from aborting? The tutorial notes that I must use the 1.8.24 version. Thanks!

We can user the following command to update the gem version.

     gem update --system -v (version_number)

     using this we can do downgrading the version also.

you might face issues when you downgrade from some random version. you have to update your rubygem to the latest version and then use

gem update --system version_number

To upgrade to the latest version, do

gem update --system

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM