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 trialDaniel Hernandez
13,437 PointsNodemon is not working
I have successfully installed nodemon but it refuses to automatically load updated webpages. It will tell me which version of nodemon I am using and that it is restarting the page from updates to the code but then it never updates the page. And if I write "rs" then it will appear idle until I close the command prompt. My operating system is Windows 8.1 pro and the laptop is a Toshiba. Anyone have ideas of what I can do to get nodemon working?
3 Answers
Daniel Hernandez
13,437 PointsIt seems to be working now although I already had the main as app.js. Thanks for the reply though!
Alan McClenaghan
Full Stack JavaScript Techdegree Graduate 56,501 PointsGlad you worked out your problem.
nodemon was crashing on me, but it turned out I had put my h1 tags outside the the quote marks in my response callback so its worth checking if something seemingly unrelated is causing the problem.
The Terminal output can seem a bit unfriendly if not incomprehensible but its worth checking out for clues about any problems.
Kevin Gates
15,053 PointsI followed this stackoverflow suggestion to get it running locally: https://stackoverflow.com/questions/40359590/nodemon-command-is-not-recognized-in-terminal-for-node-js-server
Amelia Groen
6,144 PointsAmelia Groen
6,144 PointsAre you getting any errors?
In package.json is "main" set to "app.js" (by default it will be index.js, which is what nodemon will be looking for, but that file does not exist)