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 trialJohan Berglund
4,968 PointsMissing files?
When following the video and start running the app in debug mode I get error message:
Process exited with code 1
Uncaught Error: Cannot find module 'http-errors'
Which makes sense since the app.js require a lot of javascript that is not available. In fact the entire javascript folder is empty?
3 Answers
Amanda Richardson
Web Development Techdegree Student 13,776 PointsJust FYI for anyone who might see this - I got the same error as Johan and couldn't move forward. Mine appeared to be related to the port as it said the port is already in use. I just changed the port to 8080 and it fixed it. Other than that, nothing else was doing the trick.
Jennifer Nordell
Treehouse TeacherHi there, Johan Berglund! the "javascripts" folder should be empty. However, the implication here is something went wrong when you did npm install
because "http-errors", "express" and the like should have been installed in the node_modules
folder.
I would recommend trying to run npm install
again and see if that fixes it.
Hope this helps!
Johan Berglund
4,968 PointsHi! The installation went well. I think it is the path in either the start script (package.json) or the program path in launch.json that are different in the download files from the video. How I should set them up I don't know.
Reggie Williams
Treehouse TeacherJohan Berglund when installing did you get any warnings or messages asking you to run NPM audit?