ExpressJS - throw er Unhandled error event
We do get similar error when we sometimes run our express app. We have to follow the same in that case. We need to check if its running in any terminal. If you want to find and kill process, follow these steps:
- ps aux | grep node
- Find the process ID (second from the left):
- kill -9 PRCOCESS_ID
OR
Use a single command to close all the running node processes.
ps aux | awk '/node/{print $2}' | xargs kill -9