Pretty much every time I run my node/react apps I get this error on the port where I'm running the node server. I know how to solve it temporarily by finding the PID with lsof -i:5000 and then using the kill command to shut it down.
However I'm really tired of having to this every single time I'm running one of my node/react apps locally, since if I ignore the error, my apps won't work properly. Why does this keep happening? What can I do to make the error stop coming back all the time?
I'm putting this out as a new question since I haven't found an answer that deals with how to stop the error from constantly coming back, rather than to just clear the error once. Big thanks in advance!