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 Express Basics Deeper into Routing with Express The Request Object

After installing the body parser nodemon is running my index.js file rather than the app.js file used in the tutorial

my main in package.json = "main": "app.js" Any suggestions on how to correct the file which nodemon is starting?

Kenneth Kim
Kenneth Kim
3,795 Points

Hi. Check your file strcuture in the text editor that you are using. Also check your current directory location in the console. Be sure your still at the flashcards directory. stop the server and try running these again in the console:

<your directory>\flashcards>npm install body-parser --save
<your directory>\flashcards>nodemon

Let me know if you fix it :)