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 trialRyan Doran
7,815 Pointsbcrypt isn't downloaded
When I type npm install bcrypt into the console, this is the response. And bcrypt is not one of the folders under the NPM basics folder. There are many new folders, but not bcrypt. Also, it keeps shutting down the workspace.
> bcrypt@3.0.6 install /home/treehouse/workspace/node_mod
ules/bcrypt
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using needle for node-pre-gyp https dow
nload
[bcrypt] Success: "/home/treehouse/workspace/node_modules
/bcrypt/lib/binding/bcrypt_lib.node" is installed via rem
ote
npm WARN saveError ENOENT: no such file or directory, ope
n '/home/treehouse/workspace/package.json'
npm notice created a lockfile as package-lock.json. You s
hould commit this file.
npm WARN enoent ENOENT: no such file or directory, open '
/home/treehouse/workspace/package.json'
npm WARN workspace No description
npm WARN workspace No repository field.
npm WARN workspace No README data
npm WARN workspace No license field.
+ bcrypt@3.0.6
added 68 packages from 49 contributors and audited 97 pac
kages in 10.87s
found 0 vulnerabilities
2 Answers
KRIS NIKOLAISEN
54,972 PointsDid you see the teacher's notes?
Issues installing bcrypt?
If you are getting errors in the console while installing bcrypt, run
npm install bcryptjs
instead. Then require bcryptjs in app.js
codingchewie
8,764 PointsAlso note the preferred bcrypt is bcryptjs
because it's just the JavaScript/module and doesn't require any additional settings or configuration. Reference: [Question] Difference between bcrypt and bcryptjs
Ryan Doran
7,815 PointsRyan Doran
7,815 PointsThanks Kris, I read it a few times, I guess my brain ignored the 'js' portion.
Azal Khaled
Full Stack JavaScript Techdegree Graduate 19,273 PointsAzal Khaled
Full Stack JavaScript Techdegree Graduate 19,273 Pointsstill having issues