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 trialJon Barth
7,980 PointsNot sure why I'm getting this error - No such file or directory, open 'C:\Users\jon\package.json
I've installed the files successfully. However, the next step is to execute npm start
and I'm getting an error. Specifically, "No such file or directory, open 'C:\Users\jon\package.json".
I don't know why a file in the directory above would be getting used. Could someone advise what could be the issue?
1 Answer
Alexandra Hadjidaki
26,496 PointsTo execute npm start
you must be in your project's main directory. This is the directory where your app.js
file lives, basically wherever you installed all the project's files.
It looks like you are trying to execute the command from C:\Users\jon\
, is this where your project files are?
If not, go to the correct directory and try again.
Tip: you can check what files exist in a directory easily from the command line by typing ls
on Mac (dir
on Windows). Make sure the package.json
file is there before running npm start