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

Still getting "Cannot GET /" and can't load the static pages

I successfully navigated to the last 30 seconds of the video but unfortunately was not able to properly serve the files from the "public" folder. I've checked my code against the project downloads and it doesn't seem to be a code error. Any ideas?

Rich Donnellan
Rich Donnellan
Treehouse Moderator 27,741 Points

Your post isn't tied to any specific course topic. Can you elaborate on which video you are referring to and post some code?

https://teamtreehouse.com/community/posting-code-to-the-forum

2 Answers

Whoops--that's strange. It's the Setting Up an Express Application video in the new MEAN Application course.

https://teamtreehouse.com/library/building-a-mean-application/introduction-to-the-mean-stack/setting-up-an-express-application

Make sure you're running the server from the project's root directory with node src/app.js, not within the src/ directory. If that isn't the issue, post your app.js file so we can take a look.