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 trialDhruv Upadhyay
947 PointsGetting an error on Mac when I run npm install bcrypt
I'm getting this error when I ran the command to install bcrypt
:
npm WARN enoent ENOENT: no such file or directory, open '/Users/Dhruv/package.json'
npm WARN Dhruv No description
npm WARN Dhruv No repository field.
npm WARN Dhruv No README data
npm WARN Dhruv No license field.
When I ls
to check if the node_modules
folder is there in my directory, it is not there.
1 Answer
Rich Donnellan
Treehouse Moderator 27,696 PointsIt sounds like you need to run npm init
in your desired directory.
It will ask you a series of questions and then create the package.json
file. Check the documentation if you have any other questions about it.