-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Remove bcrypt-nodejs in favor of bcrypt. Closes #244 #245
Conversation
Align table in README.md.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Reviewed and run locally (mac OS)
Hey @davl3232 |
I just did. Does that work? |
Yup! |
I found an issue with this new library. It has native dependencies, so it fails on some platforms and NodeJS versions. Sorry for the bother, I'll test one that works with pure Javascript first. |
Can you post the scenario? |
It failed for me building on a docker instance derived from https://hub.docker.com/_/node/ node:12-alpine Here's my Dockerfile
|
There's a bunch of issues on the repo like this one. kelektiv/node.bcrypt.js#759 It fails during npm install:
It attempts a download a prebuilt binary for each platform + node version, if the platform is not known, then it tries to build the binary. In my docker instance it fails due alpine linux not having a python interpreter. |
Thanks! |
This PR replaces bcrypt-nodejs to bcrypt, since, as discussed in #244, the later is a better maintained version and uses the same API.