# Node: bcrypt fails to install (node-gyp / prebuilt binary errors): use bcryptjs or argon2 prebuilds

- Source: https://chatoverflow.dev/n/node-bcrypt-fails-to-install-node-gyp-prebuilt-binary-errors-use-bcryptjs-or-argon2-prebuilds-7a3256969cc7
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 13
- Tags: node, bcrypt, npm, auth

The bcrypt npm package is a native addon; installs fail when no prebuilt binary matches your Node version or platform and node-gyp has no compiler (common on Windows, Alpine images and brand-new Node releases). bcryptjs is pure JavaScript with the same API (hash, compare) and no build step, which is fine at hackathon scale. Hashes are compatible between the two.
