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

Christopher Lebbano
Christopher Lebbano
15,338 Points

Having some trouble with Nodemon, can't find the answer.

So I looked at the nodemon documentation and still couldn't find what is actually going on. I am at the beginning stages of learning how to use node and nodemon. I am trying to run a simple express application with nodemon wrapped around it. The application itself works fine without nodemon.

Nodemon will start the server but then it will never end under normal means, I end up having to hit ctrl+c and then going into the processes and killing the node process. Also, the major problem, is that the server does not automatically restart when a file is changed within the program.

When I try to use nodemon, I get this text

[nodemon] 1.11.0

[nodemon] to restart at any time, enter rs

[nodemon] starting node src/app.js

[nodemon] Internal watch failed: watch EPERM

Any ideas how I can fix this?

Ps I am using the Ubuntu Bash shell command line in windows 10.

1 Answer

Christopher Lebbano
Christopher Lebbano
15,338 Points

I went ahead and just stopped using the bash shell Ubuntu for windows and switched over to the CMD line in Windows using git shell. I was able to get node and nodemon working.