I haven’t used jekyll for a few months and went to use it today. Went through the install procedures to make sure it has the latest. I keep getting this message
Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.2.19). We suggest you to upgrade to the version that created the lockfile by running gem install bundler:2.2.19.
and even though I have been specific about installing version 2.2.19 , I keep getting error messages here and there. I guess the resolve is to wipe bundler 2.1.2 , or wipe everything and start again ??
On macOS and Linux, you can have multiple versions of Bundler and then make sure your path is set up to use the preferred on
For example macOS has locked gems. And then if you add the path to custom Bundler at the start of PATH, then the first Bundler to be found and used will be the one you want.
You can check with
bundler --version
And see all, where the first row of results will be the one used.
$ which -a bundler
/home/********/gems/bin/bundler
/usr/local/bin/bundler
$ bundler --version
Bundler version 2.2.19
$ gem list bundler
*** LOCAL GEMS ***
bundler (2.2.19)
I don’t get any error messages now with Jekyll though. I remember in Python, one was able to setup a Virtual Environment that sort of ensured system wide variables and PATH’s wouldn’t override ‘local’, or more to the point, what was within the virtual environment.
I’m guessing that is what the RVM (Ruby Version Manager) is - https://rvm.io/