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 (2015) Getting Started with Express Install Express.js

Where is my package.json file?

While I did not have a problem installing express, I do have a silly (maybe) question about this video sequence. Where is the package.json file created? Is it floating on my computer somewhere I can't see? I am using Brackets text editor, if that makes a difference.

1 Answer

Shane Oliver
Shane Oliver
19,977 Points

package.json lives in the root of your project directory

Thanks for the reply. I found it way, way up my file directory under users. They should make it clear that you need to change directories to the project folder before you start installing things. Otherwise, who knows where you are sending modules and files to!

Shane Oliver
Shane Oliver
19,977 Points

The instructor was inside the project directory that he cloned before running npm init - he never changed directories