vidly-api-node
vidly-api-node copied to clipboard
bcrypt can not be installed
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.
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
thank you!!!! I'm stuck over a day
I deleted the bcrypt directories in node-modules and then did a npm i and npm rebuild and i was good :)
I had the same problem, check out the version compatibility of the bcrypt package and compare it with your node installation.
Had the same issue. Check version compatibility here https://www.npmjs.com/package/bcrypt
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.
I would suggest using bcryptjs, I often had problems with bcrypt
Thank you all!
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
remove bcrypt dependecy from the package.json,
run npm install bcrypt
it will install updated version and works fine for me.
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
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
I also faced the problem. I uninstalled bcrypt and installed again
npm uninstall bcrypt
npm install bcrypt
- from
package.json
look fordependencies
- under it remove
"bcrypt": "^1.0.3",
. - run
npm i
again.
it should works now.
npm uninstall bcrypt
thank you !!!!! it worked