Skip to content
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

bcrypt can not be installed #2

Open
spade555 opened this issue Sep 18, 2018 · 15 comments
Open

bcrypt can not be installed #2

spade555 opened this issue Sep 18, 2018 · 15 comments

Comments

@spade555
Copy link

When I try to install the dependencies to the backend service with command "npm i" then one of them can not be found on the given github release link therefore end up with the error: "Failed at the [email protected] install script".

The exact error message is:
node-pre-gyp ERR! Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v64-win32-x64.tar.gz

I am not sure where this link coming from, i did not find it in the package-lock.json.
However, it is really wrong and gets to a 404.

Sorry for the noob question, I'm really new in node. Thank You for the answer in advance.

@spade555
Copy link
Author

spade555 commented Sep 19, 2018

okay, so it seems that the solution for this problem is really easy. I changed the value of the "bcrypt" property in the package.json file to "^2.0.1" and after this the "npm i" did its job well.
Here are the available bcrypt releases: https://github.com/kelektiv/node.bcrypt.js/releases

@israelKusayev
Copy link

thank you!!!! I'm stuck over a day

@rajeevkuruganti
Copy link

I deleted the bcrypt directories in node-modules and then did a npm i and npm rebuild and i was good :)

@nicoladaniello
Copy link

I had the same problem, check out the version compatibility of the bcrypt package and compare it with your node installation.

@bbagish
Copy link

bbagish commented Nov 17, 2018

Had the same issue. Check version compatibility here https://www.npmjs.com/package/bcrypt

@frndchagas
Copy link

I've updated my bcrypt to 3.0.2 at package.json.

Before this, I've installed windows-build-tools

npm install --global --production windows-build-tools

But I think that just change bcrypt version will solve your problem on Windows 10.

@pavanjadhaw
Copy link

I would suggest using bcryptjs, I often had problems with bcrypt

@cyberena
Copy link

Thank you all!

@israr-ahmad
Copy link

israr-ahmad commented Jun 9, 2019

bcrypt library that declared in config/package.json line #15 is an older version that's why the whole project is not working and also we face problem in dependencies installation for that solution remove this line #15 from config/package.json then install dependencies after install dependencies now additionally install bcrypt library using this command "npm install bcrypt" that's solve. from there
https://www.npmjs.com/package/bcrypt

@mamunur121
Copy link

remove bcrypt dependecy from the package.json,
run npm install bcrypt
it will install updated version and works fine for me.

@rmit-s3315271-pat-kean
Copy link

rmit-s3315271-pat-kean commented Sep 7, 2019

remove bcrypt dependecy from the package.json,
run npm install bcrypt
it will install updated version and works fine for me.

Thank you mamunur121 that worked for me

@ChenHanTing
Copy link

remove bcrypt dependecy from the package.json,
run npm install bcrypt
it will install updated version and works fine for me.

It also worked for me

@sajib21
Copy link

sajib21 commented May 2, 2020

I also faced the problem. I uninstalled bcrypt and installed again

npm uninstall bcrypt
npm install bcrypt

@ehsania
Copy link

ehsania commented Aug 16, 2020

  • from package.json look for dependencies
  • under it remove "bcrypt": "^1.0.3",.
  • run npm i again.

it should works now.

@qiqiliang1996
Copy link

npm uninstall bcrypt

thank you !!!!! it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests