Skip to content

Error building site: "bundler: failed to load command: jekyll" #207

Open
@MarkWieczorek

Description

@MarkWieczorek

I've been using this theme for a couple years now with only minor problems. Today I tried rebuilding my site, but I encountered an error that I've never seen before.

I am using macOS with brew, so the first thing I did was to reinstall ruby, jekyll and bundle. I then deleted the Gemfile.lock file and vendor folder. However, whenever I rebuild using bundle exec jekyll serve I get the following error:

docs git:(develop) ✗ bundler exec jekyll serve
Configuration file: /Users/lunokhod/SphericalHarmonics/shtools-git/docs/_config.yml
            Source: /Users/lunokhod/SphericalHarmonics/shtools-git/docs
       Destination: /Users/lunokhod/SphericalHarmonics/shtools-git/docs/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
   GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data.
                    done in 6.453 seconds.
 Auto-regeneration: enabled for '/Users/lunokhod/SphericalHarmonics/shtools-git/docs'
bundler: failed to load command: jekyll (/Users/lunokhod/SphericalHarmonics/shtools-git/docs/vendor/ruby/3.0.0/bin/jekyll)
/Users/lunokhod/SphericalHarmonics/shtools-git/docs/vendor/ruby/3.0.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve/servlet.rb:3:in `require': cannot load such file -- webrick (LoadError)
	from /Users/lunokhod/SphericalHarmonics/shtools-git/docs/vendor/ruby/3.0.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve/servlet.rb:3:in `<top (required)>'
[...]

Does anyone have an idea of what the problem might be? (The github warning is irrelevant.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions