How do I downgrade to an old version of compass using gem install?

Matt Lynn picture Matt Lynn · Jun 21, 2010 · Viewed 44.8k times · Source

I've been using compass from http://compass-style.org/ to manage my sites css for a long time. I just installed the newest version and I get a rather unpleasant error, that has as a side effect corrupted all my css files. How do I downgrade to an older version of this?

Thanks, Matt

Answer

Jaspero picture Jaspero · Mar 12, 2013

I just had a similar situation and there is something else missing from @corroded answer. Since @Matt Lynn is downgrading, he needs to uninstall the existing version of compass.

$ sudo gem uninstall compass

$ sudo gem install compass --version versionnumber

Otherwise you will end up with two different versions of compass.