-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React 2019 Course | Bcrypt error #21
Comments
Open file "package.json" and remove "bcrypt" Then Install bcrypt-nodejs using: Replace "bcrypt" with "bcrypt-nodejs" in these files:
|
I faced the same error but instead of changing files, I just installed bcrypt@latest and it is working just fine. Hope it helps |
Even after trying some of the above proposed solutions and also following some advice from a friend, I still have no success. I'm still left with: "3 vulnerabilities (2 moderate, 1 high)" |
@mamoyz very helpful bro! God bless you man! |
Do follow @pouriamoosavi advice and install the latest bcrypt. |
@factorlive i updated the bcrypt to latest but on windows 10 it didn't work out . but solution from @mamoyz worked out. I have now another issue with users . i get a 500 internal server error while submitting the registration form! any solution? |
@ybakhshi if you're still having issues with this, I believe I've found a solution. If using bcrypt-nodejs as @mamoyz suggests then the following two lines need adjusting in users.js Line 21: and This seemed to get around the issue for me. Also if you then run into issues during the login form section replace |
If you are installing bcryptjs in 2020, you are going to change |
If you tried installing |
if you get the error"bcrypt-nodejs is no longer actively maintained. Please use bcrypt or bcryptjs. " This is what I did Open file "package.json" and remove "bcrypt" Then Install bcrypt-nodejs using: |
This did it for me. Thanks! |
It gave me 404 error and I changed the Bcrypt version in |
Unable to run "npm i", because i'm getting a bcrypt error unable to download and some other dependencies like node, node-gyp and node-pre-gy.
My solution was to installing these packages on their own and instead of using bcrypt, i used bcryptjs.
Afterwards you need to go into the auth and users file and change:
const bcrypt = require("bcrypt");
to
const bcrypt = require("bcryptjs");
and it should be working fine.
The text was updated successfully, but these errors were encountered: