EADDRINUSE error killed

Node.js EADDRINUSE error killed. Troubleshooting error error when running ‘grunt server’.

EADDRINUSE-1

It might be that your previous node server was close unexpectedly and the processes are still running. To find out the process id’s:

ps aux | grep node

EADDRINUSE-2

Then kill them:

kill -9 PID

Doing the -9 on kill sends a SIGKILL (instead of a SIGTERM). SIGTERM has been ignored by node for me sometimes.

EADDRINUSE2

You can also try:

killall node

Then you can run your server again as normal.