Error installing bcrypt with npm

The easy solution is just switch from the “bcrypt” npm module to bycryptjs or bcrypt-nodejs. It’s the exact same API, but pure JS so no native add-ons to deal with.

npm install --save bcryptjs && npm uninstall --save bcrypt

Then change your require calls to “bcryptjs”, but all your code otherwise can be unchanged.

Long term, I suspect at the moment bcrypt may not be ready for node v0.12.0 yet, but if not it will eventually be updated and ready.

Leave a Comment