vidly-api-node icon indicating copy to clipboard operation
vidly-api-node copied to clipboard

bcrypt can not be installed

Open spade555 opened this issue 6 years ago • 15 comments

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 avatar Sep 18 '18 16:09 spade555

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

spade555 avatar Sep 19 '18 09:09 spade555

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

israelKusayev avatar Sep 21 '18 11:09 israelKusayev

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

rajeevkuruganti avatar Oct 08 '18 14:10 rajeevkuruganti

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

nicoladaniello avatar Oct 12 '18 18:10 nicoladaniello

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

bbagish avatar Nov 17 '18 02:11 bbagish

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.

frndchagas avatar Nov 30 '18 00:11 frndchagas

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

pavanjadhaw avatar Mar 03 '19 12:03 pavanjadhaw

Thank you all!

cyberena avatar Mar 14 '19 07:03 cyberena

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

israr-ahmad avatar Jun 09 '19 12:06 israr-ahmad

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

mamunur121 avatar Aug 21 '19 14:08 mamunur121

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

rmit-s3315271-pat-kean avatar Sep 07 '19 02:09 rmit-s3315271-pat-kean

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

ChenHanTing avatar Feb 06 '20 23:02 ChenHanTing

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

npm uninstall bcrypt npm install bcrypt

sajib21 avatar May 02 '20 11:05 sajib21

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

it should works now.

ehsania avatar Aug 16 '20 16:08 ehsania

npm uninstall bcrypt

thank you !!!!! it worked

qiqiliang1996 avatar Nov 18 '21 18:11 qiqiliang1996