Can't start Jekyll in WIN10

There’s some problem when I try to ues jekyll in Win10.
some informations like this:
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]
gem -v 3.2.11
jekyll -v jekyll 4.2.0
bundler -v Bundler version 2.2.11
but , when i start jekyll, jekyll serve or bundle exec jekyll serve, some informations like this:

then i installed webrick but the problem is still here, how should i to fix it?
gem list
webrick (1.7.0)

Use Ruby 2.7 - Jekyll does not support the new Ruby 3 yet.

Please in future have a Google search to see if your issue has encountered before and show some research. Like what you tried before from existing answers and how those solutions didn’t work, as it tells us useful info

Searched this “windows jekyll error webrick” on DuckDuckGo and two results came up around Jekyll on GitHub with your exact error though not Windows related. So you question looks like a duplicate.


Add to Gemfile:

gem "webrick"


bundle install 

Same as just doing:

bundle add webrick

Ideally you only have to install webrick once globally. I don’t know why that didn’t work. Or why the error is happening. I use Jekyll 4.2 without this error or workaround.

Update: in the second link above there is a merged PR from December linked. That fixes this issue by adding Webrick as a dependency. So as an alternative fix for you, try upgrading to Jekyll newest within 4.2.

gem 'jekyll', '~> 4.2'

In Gemfile

And then one of

bundle install

bundle update 

If the merged code is not released as a Jekyll version yet, you have a workaround until the next 4.2.X or 4.3 is released.

Thanks a lot!! when i used “bundle add webrick” ,everything is OK !! I have spended 2 days to fix it.
I think I should to do a Google search in future, The answer is just here! :smile:

1 Like