mosh-hamedani / vidly-api-node

309 stars 282 forks source link

bcrypt can not be installed #2

Open spade555 opened 6 years ago

spade555 commented 6 years ago

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 bcrypt@1.0.3 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 commented 6 years ago

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 commented 6 years ago

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

rajeevkuruganti commented 6 years ago

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

nicoladaniello commented 5 years ago

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

bbagish commented 5 years ago

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

frndchagas commented 5 years ago

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 commented 5 years ago

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

cyberena commented 5 years ago

Thank you all!

israr-ahmad commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 4 years ago

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 commented 4 years ago

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

npm uninstall bcrypt npm install bcrypt

ehsania commented 4 years ago

it should works now.

qiqiliang1996 commented 2 years ago

npm uninstall bcrypt

thank you !!!!! it worked