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 trialCaleb Hasch
Full Stack JavaScript Techdegree Graduate 16,351 PointsHello, I get a bunch of errors after typing 'npm start' into the terminal even after typing 'npm install'.
This is the messages that pop up.
PS C:\Users\The Count\Downloads\practice-exercise (1)>npm install
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\The Count\Downloads\practice-exercise (1)\package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\The Count\Downloads\practice-exercise (1)\package.json'
npm WARN practice-exercise (1) No description
npm WARN practice-exercise (1) No repository field.
npm WARN practice-exercise (1) No README data
npm WARN practice-exercise (1) No license field.
up to date in 0.72s
PS C:\Users\The Count\Downloads\practice-exercise (1)>npm start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\The Count\Downloads\practice-exercise (1)\package.jsonnpm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\The Count\Downloads\practice-exercise (1)\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in: _43_22_025Z-debug.log
1 Answer
Zimri Leijen
11,835 PointsFor some reason it can't find the package.json file in the directory C:\Users\The Count\Downloads\practice-exercise (1)\
the package.json is important for npm to know what it should install (as well as what scripts to run, etc.).
Did you unpack the zip correctly? Can you verify the package.json is there?
Blake Larson
13,014 PointsBlake Larson
13,014 PointsThe no such file or directory usually means the path is wrong.
C:\Users\The Count\Downloads\practice-exercise (1)\package.json
could just beC:\Users\The Count\Downloads\practice-exercise