Please help me solve this error. I tried all the possible ways to solve it but failed.
Make sure you don't have already a running process on port 4000 on your machine.
You can run jekyll on a different port if needed, e.g: bundle exec jekyll serve --port 8080
I have a working proof-of-concept at #7961 that issues a warning when you have a server already running..
Since your site is already using Jekyll 4.1.1, you can test it out (if you want to) by pointing your Gemfile to that pull request:
# Gemfile
gem "jekyll", github: "jekyll/jekyll", ref: "refs/pull/7961/head"
Make sure you don't have already a running process on port 4000 on your machine.
You can run jekyll on a different port if needed, e.g:bundle exec jekyll serve --port 8080
It worked. Thank you very much. Appreciate you!!
Most helpful comment
Make sure you don't have already a running process on port 4000 on your machine.
You can run jekyll on a different port if needed, e.g:
bundle exec jekyll serve --port 8080