When attempting to use bcrypt in a Docker container on macOS, an error occurs while loading the bcrypt shared library. The error message indicates that there is an "Exec format error" when trying to load the bcrypt_lib.node file.
Steps to Reproduce
Set up a Docker container running a Node.js application on macOS.
Install bcrypt via npm (or yarn).
Attempt to run the application that uses bcrypt.
Expected Behavior
The bcrypt library should load and function correctly without any errors.
Actual Behavior
An ERR_DLOPEN_FAILED error is thrown, indicating that the shared library for bcrypt could not be loaded due to an "Exec format error." This prevents the application from using bcrypt.
Description
When attempting to use bcrypt in a Docker container on macOS, an error occurs while loading the bcrypt shared library. The error message indicates that there is an "Exec format error" when trying to load the
bcrypt_lib.node
file.Steps to Reproduce
bcrypt
via npm (or yarn).bcrypt
.Expected Behavior
The bcrypt library should load and function correctly without any errors.
Actual Behavior
An
ERR_DLOPEN_FAILED
error is thrown, indicating that the shared library for bcrypt could not be loaded due to an "Exec format error." This prevents the application from using bcrypt.Context