UPDATE: (4-24-2014) added additional ways to do this based on feedback from the community on twitter! Thanks guys!
Nope! Not what you think, or maybe hoping to find. Remember, I am an accused “Nodejs Fanboy.”
Ever get stuck with the dreaded:
Error: listen EADDRINUSE
It can put a damper on your day, but never fear. That error just means that another instance of that particular Node.js program is running, and you need to kill it to start it up again. When ctrl-c doesn’t work (Mac or Linux) then you need to get all “greppy.” (Yes, greppy is a real serious technical term).
Hit the command line and type this:
ps aux | grep node
Then check for the process ID and type:
kill -9 <the process id you want to kill>
Hope you find this usefull, and remember, most of these posts are for me to remember what it was I did that “one time.”
Additional ways to do this:
A shout out to some awesome folks in the community who tweeted me alternative ways to kill Nodejs. Thanks folks!
From: @ahmetalpbalkan Run this command> killall node
From: @tjanczuk Run this command> kill -9 $(pgrep node)