F:\gatsby-site>gatsby serve
error UNHANDLED EXCEPTION
Error: listen EADDRINUSE 127.0.0.1:9000
I am also seeing this issue. For me, php-fpm was running on port 9000. I tried gatsby serve -p 8000 to run it on a different port and it worked fine.
Like @anastasialanz correctly mentioned, EADDRINUSE is thrown when the port is already in use. This is a great opportunity to auto detect and let the user pick a port like we have for develop so I've gone ahead and added that in.
Thank you for opening this @tgy3300 and for your response @anastasialanz!
Published in [email protected]
Most helpful comment
Like @anastasialanz correctly mentioned,
EADDRINUSEis thrown when the port is already in use. This is a great opportunity to auto detect and let the user pick a port like we have for develop so I've gone ahead and added that in.Thank you for opening this @tgy3300 and for your response @anastasialanz!