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 trial

JavaScript Express Basics (2015) Developing Express Apps Like a Boss Easily Debug Express (and other node apps)

Sergio Cruz
Sergio Cruz
15,550 Points

Nodemon isn't registering changes on my script

I installed it without the sudo command, could that be causing it?

6 Answers

Huston Hedinger
STAFF
Huston Hedinger
Treehouse Guest Teacher

Sergio, that sounds frustrating! By the way, the community and myself will have a stronger ability to answer your questions if you provide more detail.

Sergio Cruz
Sergio Cruz
15,550 Points

What else can I provide? The code in the app.js file has nothing to do with it right? I'm not getting any errors on babun either. Just nothing happens after it logs out: The frontend server is running on server 3000. Also I can't stop nodemon from using the server after I run it. Control c doesnt work and it doesn't seem to have a built in stop command, just the rs, which isn't working either. So when I try to run node-debug for the next lesson I get the EADDRINUSE error. Any tips on what I should do?

Try install again with sudo. Hopefully you've figured out how to stop the server from your other forum question.

Sergio Cruz
Sergio Cruz
15,550 Points

How do I unistall it?

Try:

sudo npm uninstall -g nodemon

Or, just force a reinstall:

sudo npm install -g --force nodemon
Lido Fernandez
Lido Fernandez
10,556 Points

I think that you only can stop nodemon killing it from the task manager

I'm getting exactly the same issue. Everything works fine. Nodemon runs a server at port 3000 and i can see my app, however whenever i save a file, nothing happens unless i refresh the browser. Also i can see in terminal that nothing has happened either.

I've tried reinstalling under sudo but still no luck. :(

On a side note could you use something like browser sync with gulp to achieve the same outcome?

Hi Pete, Any updates in regards to this issue? I'm having the same problem. Used to work just fine before and now it just wont' restart on file save.

Perhaps with the new version of the nodemon it no longer logs out every time server restarts, because changes do take effect if you refresh the browser.

Same issue here, nodemon starts correctly, restarts with 'rs' command, but doesn't react on any "save" action. I've tried -L tag, tried dev version (1.5.1), nothing helps :(

Windows 10 x64 nodemon 1.8.1 npm 3.3.12 baboon

Ok guys, after several hours I still wasn't able to run it, so easy way here is to use alternative like forever: https://strongloop.com/strongblog/comparison-tools-to-automate-restarting-node-js-server-after-code-changes-forever-nodemon-nodesupervisor-nodedev/