Navigate back to the homepage
AboutWeb-DevelopmentSoftware-DevSelf-Improvement
x
x
x
x
x
x
x

Looks like develop for this site is already running, can you visit http://localhost:8000 ? If it is not, try again in five seconds

Divyansh Tripathi
September 19th, 2021 · 1 min read

I recently faced this error while working with gatsby and couldn’t find anything substantial as a result so here are a list of things you can do to solve it -

Clean you global Gatsby sites folder to rebuild

Delete the ~/.config/gatsby/sites folder

1rm -rf ~/.config/gatsby/sites

or on Windows delete this folder :-

1C:\Users\[your name]\.config\gatsby\sites

Clean Gatsby Cache

1gatsby clean

Run ps aux to see if gatsby is still running on any port

1ps aux | grep gatsby

If you see any result kill those processses and try gatsby develop again.

Last resort

What worked for me after updating gatsby-cli and gatsby, was to initialize new test project with gatsby new your-project-name somewhere else (just to test if the new starter would work). Run gatsby develop, it should start the dev server, open it on http://localhost:8000. Now cmd/ctrl+c to close it and you can delete that test project.

Now go back to your project that didn’t work and try gatsby develop, everything should work now.

For more such bug fixes and javascript advices follow the newsletter below :).

Join my email list and get notified about new content

I promise I won't spam or unnecesarily promotional emails through this mailing list. You might also get chance to be eligible for my monthly giveaways. Also I promise to not spam your inbox or share your email with any third parties.

More articles from Silentlad

Show your work

Show your work

September 19th, 2021 · 1 min read

Beware of how you choose your goals

Beware of how you choose your goals

September 1st, 2021 · 3 min read
xx
© 2018–2023 SilentladSitemapRSS feed
Link to $https://twitter.com/silent_lad_Link to $https://medium.com/@silentladLink to $https://github.com/silent-ladLink to $https://www.instagram.com/silent_lad_/Link to $https://www.linkedin.com/in/silentlad/Link to $mailto:silentlad29@gmail.com