Prefixing your commands bundle exec
will help you to solve issues when having multiple versions of the same gems, since nothing stops you to do that.
However if you still want to run just jekyll s
you can set a pessimistic version constraint in your Gemfile
, like:
gem 'jekyll', '~> 3.9'
Update your dependencies
bundle update
And then clean all the gems not declared in your Gemfile
bundle clean
Be aware that after running
bundle clean
you might need to runbundle install
again on other Ruby projects, to reinstall the required gems.