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 trialWilliam Ray Noble
22,190 PointsQuestion about React rendering in the browser
I have downloaded the material from that the instructor gave us, however, when I go to run npm start I receive the following error in the terminal.
npm start npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /Users/raynoble/sei/treehouse/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '/Users/raynoble/sei/treehouse/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: npm ERR! /Users/raynoble/.npm/_logs/2020-06-26T18_34_51_860Z-debug.log
I have take the same steps as the instruct has done in the video.
Thanks for your help!
2 Answers
Juan Lopez
Treehouse Project ReviewerHello William Ray Noble Just looking at the error message it looks as though you may not have navigated to the correct folder/directory.
Once you download the Project files you'll want to navigate to the correct folder/directory for the lesson you are on.
Some may just have the scoreboard
folder for you to follow and code along and others will have the scoreboard_final
with the finished code for that lesson.
Once you are in the correct directory of either scoreboard
or scoreboard_final
then you'll want to run
npm install
after all the dependencies are done installing then you'll be able to run
npm start
Ali Abbas
8,772 PointsHi William Ray Noble. i had the same problem. After several trials, I noticed that my node_modules folder was empty. So, i deleted it. Then i navigated again to the folder scoreboard, ran npm install. it installed the node_module folder and it wasn't empty. Then, i ran npm start, and the server started and i got it to work. I hope this helps you, and hope i explained well.
William Ray Noble
22,190 PointsWilliam Ray Noble
22,190 PointsThank you for your quick response. I have navigated to the correct folder that I want to be working out, however, I still receive the same error.