nodejs cluster module - Address in use error nodejs cluster module - Address in use error express express

nodejs cluster module - Address in use error


This is one of the cases, when your server code faces an error and due to improper error handling, we get exception but the port is still busy. So you need to clear out the application which has reserved that port. If you are using linux, you can use

lsof -i :3000

Get the process id and kill that process using

kill -9 #processId

Then restart your server.