Make sure ruby is setup. This works for me on Catalina
brew install ruby
Add the following to your
~/.zshrc file. This will ensure so that your user (Homebrew) install of Ruby will be found before the system Ruby.
Install bundler for your user. Use the flag to avoid sudo.
gem install bundler --user-local
Add jekyll to your Gemfile. Here, matching GH Pages version. Or
gem 'jekyll', '~> 3.9'
sudo use and permissions error, adjustment on above post comment, use local here too.
bundle config set --local path vendor/bundle
And finally make sure your path in .zshrc or .bashrc includes path to your gems so bundler can be found.
X.X.0 with your own Ruby version e.g.
2.6.0 (always end with
bundle exec jekyll build