Error: listen EADDRINUSE
I was trying to run my local Node server but I kept seeing the following error
I rebuild the application and reinstalled all the npm dependancies but I kept seeing this EADDRINUSE error
The solution is to kill all my local gulp tasks and make sure that the server is killed
Open another terminal and run:
ps -ax | grep node
You’ll see something like:
75453 ttys001 0:00.68 node ./api/server.js
75857 ttys004 0:00.00 grep node
Then run:
sudo kill 75453
That 75453 is the process number that corresponds to your server.
You should now be able to run your servers again
Note - This error might also mean that another process is using the port that your Node server is trying to use so you can also trying change your servers port number to something that isn't in use. In my case, I knew that the solution wasn't just changing the port number.
Source info

















