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 trialMika Lind
5,441 Points[nodemon] app crashed - waiting for file changes before starting...
After successfully installing nodemon, when I write nodemon in the terminal and press enter, it says "[nodemon] app crashed - waiting for file changes before starting...". What's going on?
1 Answer
Eric Wilson
9,380 PointsYou have to give nodemon a file or project to watch. Your nodemon command should look like this: nodemon [your node app]
.
Also, keep in mind that if you make changes to your node project, nodemon continues to watch your project and update accordingly. So, if you make a change that node can't run, it will crash nodemon until the issue is resolved. Then, nodemon will resume running the app.