I was encountering this error message on Windows 10 while trying to use Jekyll’s LiveReload feature. The other answers here did not solve the problem completely, or risked having the issue re-occur the next time bundle install is run.
My solution (taken from this site) was to:
-
Run this console command
gem uninstall eventmachineand choose to uninstall
eventmachine-1.2.7-x64-mingw32gems from your system. -
Edit
Gemfileinside your project directory and add this line inside:gem 'eventmachine', '1.2.7', git: 'https://github.com/eventmachine/eventmachine.git', tag: 'v1.2.7' -
Run
bundle install -
Clean up your jekyll build and cache with command
bundle exec jekyll clean
You can now use the --livereload parameter without getting any issue, even if you execute bundle install in future.