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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Dazeran Zamri](https://uploads.teamtreehouse.com/production/profile-photos/1167822/micro_97342253_10158183344824801_6354840715037507584_o.jpg)
Dazeran Zamri
5,992 PointsError when running command in terminal
Hi, was trying to follow along the video but got stuck at running the command "npm i"
Error as follows :
dazeranzamri@Dashs-MacBook-Pro react-basics % npm i npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /Users/dazeranzamri/Documents/Education/react-basics/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '/Users/dazeranzamri/Documents/Education/react-basics/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: /Users/dazeranzamri/.npm/_logs/2023-09-27T21_19_49_999Z-debug-0.log dazeranzamri@Dashs-MacBook-Pro react-basics %
2 Answers
![Rohald van Merode](https://uploads.teamtreehouse.com/production/profile-photos/11666882/micro_Rohald-profile.jpg)
Rohald van Merode
Treehouse StaffHey Dazeran Zamri 👋
Looks like you're in the wrong directory when running the command. You'll want to make sure to change into the directory where the project files are located.
Judging from the error snippet you've shared it looks like you're located in the /react-basics
folder but you'll want to move into the grocery-list
directory. This is where the package.json file is located that is required to run the install command.
Hope this will help to get you going again 😃
![Peter Harbour](https://secure.gravatar.com/avatar/f41c9a68b63ca8a9d69f07548a020b99?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Peter Harbour
226 PointsThis worked for me
Dazeran Zamri
5,992 PointsDazeran Zamri
5,992 PointsThis worked, thanks Rohald!
n r
7,554 Pointsn r
7,554 PointsHow do I actually change this?