Wrong number of arguments (given 2, expected 1)

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

:warning: Be aware that after running bundle clean you might need to run bundle install again on other Ruby projects, to reinstall the required gems. :warning:

https://bundler.io/v2.2/man/bundle-clean.1.html

2 Likes