-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application Crash with bcrypt's compare
function on node:alpine
#1040
Comments
Hello, |
Usually happens due to a libc mismatch, check that the copy step isn't copying node_modules from the host into the container you just built |
Hello. I have the same problem, this is my dockerfile:
and this is my docker-compose.yml:
I tried using a .dockerignore file to ignore node_modules, but nothing changed, any suggestions? I dont know if this changes anything, but I use WSL. |
same problem here node:20-alpine, any workaround please? |
same problem with |
I suggest using older verison such as 5.10. It fixed my problem. |
Node.js v20.18.0 Error: Error loading shared library /node_modules/.pnpm/[email protected]/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node: Exec format error |
same problem |
Title:
Application Crash with bcrypt's
compare
function on node:alpineDescription:
I encountered an issue where my application crashes when using the
compare
function from bcrypt on thenode:alpine
Docker image. I tried switching to the latest Node.js version, which resolved the problem, but it persists on Alpine. Here are the details:Steps to Reproduce:
node:alpine
Docker image in a Node.js application.compare
function to compare hashed passwords.compare
function.Expected Behavior:
The application should successfully execute the
compare
function without crashing.Actual Behavior:
The application crashes when calling the
compare
function, specifically on thenode:alpine
image.Additional Details:
The text was updated successfully, but these errors were encountered: