Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSergio Cruz
15,550 PointsHow do I stop nodemon?
I keep on getting the EADDRINUSE error when trying to launch a new instance of the server with node-debug. Neither control c nor rs stops nodemon. I was going to try ps -W | grep nodemon and then force stop it from there, but the process it shows is something called node.exe. I'm not sure if thats nodemon or node itself, so I don't want to mess something up on accident. Would it be safe to stop that process or what should I do?
6 Answers
alex gwartney
8,849 PointsI was reading about this on stack from some one with a similar issue they were saying to kill it through the task manager http://stackoverflow.com/questions/17612653/how-to-exit-nodemon-on-a-windows Not sure if this is the best solution but hopefully it at least gets you pointed in the right direction.
Iain Simmons
Treehouse Moderator 32,305 PointsYeah it should be safe to stop that process, assuming you're not currently running other Node modules.
Nodemon is a Node module, so it will running node
as a process.
Brigette Eckert
16,957 PointsI assuming cygwin which emulates linux- cntrl x isn't working nor is quit. Anyone know how to stop node/nodemon in the command line?
Iain Simmons
Treehouse Moderator 32,305 PointsIf it's in the same console/terminal window that you started the nodemon process, then it should be Ctrl + C
(maybe twice).
Otherwise, if it's in the background, follow the steps in the link that alex gwartney posted.
Kevin McNamara
7,483 PointsI am still having trouble with this. When i type in localhost:3000 it just loads forever, and when i type nodemon src/app.js in the command line, I get that error
I used ps -w | grep node to find the PID, but when i type kill PID I get a message saying no such process. Anyone have a solution?
Allan Montilla
2,741 Pointsctrl + c in mac, close the nodemon.
miguelisidoro
512 Pointsyou can use ps -ef | grep node
to find the process id
and then sudo kill -9 <PID>