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 trialMichael Chambers
Full Stack JavaScript Techdegree Graduate 28,393 PointsWhen I change to a specified directory in the terminal and install bcrypt, the package installs to another directory.
I'm having an issue where I move into the desired directory in the terminal. From there I type pwd and it shows /Users/michaelchambers/Desktop/bcrypt.
However, once I run npm install bcrypt, no additional files are added to the current directory. Instead, bcrypt is being installed to /Users/michaelchambers/node_modules. Any idea why this is happening and how I can get the package to install in the correct place?
I've tried uninstalling bcrypt and reinstalling and the same thing happens every time.
1 Answer
Michael Chambers
Full Stack JavaScript Techdegree Graduate 28,393 Pointsnpm install bcrypt
For some reason my system doesn't automatically create the node_modules subfolder. I ended up using npm init first and then installing bcrypt. That seems to work fine.
Brandon Leichty
Full Stack JavaScript Techdegree Graduate 35,193 PointsBrandon Leichty
Full Stack JavaScript Techdegree Graduate 35,193 PointsHey Michael,
Quick question: what commands are you entering to install bycrpt using NPM? Could you share them here?