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

POST http://localhost:3000/hello 404 (Not Found)

I followed all the way along with this video and using the download file from the teacher's note, but when I click submit button, Chrome console says "POST http://localhost:3000/hello 404 (Not Found)" and the page is saying "Cannot POST /hello"

Does anyone know why?

And here is the result when I am running "node app.js" in the CVS's terminal:

Error: Cannot find module '/Users/xxxx/Desktop/flashcard/views/app.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:924:15) at Function.Module._load (node:internal/modules/cjs/loader:769:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }

1 Answer

Your question is in the general JavaScript section, so we don't know which video you are talking about. Go to the questions tab of the video that you're watching and click "Get Help". Then, ask your question.