I use Jekyll for handling the content of this blog. Jekyll is a simple static site generator based on Ruby. Normally it’s a dream working with Jekyll. You just install a gem bundle via command line and it just works. Simple as that.
I got a new job computer a while back, and the Jekyll install I did on that computer went really FUBAR.
When running the jekyll-serve command to run the site locally, I received error messages like this one:
Ok. That’s weird. Liquid should’ve been installed with the Jekyll bundle. Let’s update the Jekyll gem bundle:
Still no luck. The error message persists. Let’s try to install Liquid specifically:
Ok, turns out that the gem install command installed the latest version of the gem. Maybe that doesn’t matter? Let’s run jekyll-serve again:
That didn’t fly. Turns out my Jekyll project is picky about gem versions. But how do I downgrade a gem? Usually it’s about upgrading stuff, not downgrading them. After some fiddling around I did this:
Then reinstall the gem with the requested version
After this I kept running jekyll-serve and repeating the above process until I had adjusted the versions of all the required gems. After that, I could run my site locally. But it didn’t feel right to use outdated gems, so I tried the ‘bundle update jekyll’ commando again.
And what do you know, all the gems were updated to the latest version and I was now able to run the site locally.
Disclaimer: I’m not sure if this is the best way of solving this problem, but it solved it for me!