-
Notifications
You must be signed in to change notification settings - Fork 524
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
invalid ELF header #1048
Comments
This usually happens if bcrypt.node is of a different OS/Arch than it was originally installed it Are you running docker or some remote development environment? |
If you are working on Docker, you should ignore node_modules, this will solve your problem. If you are working with docker-compose, you probably mounted your application from the host (your root directory) to the container. This replaced the node_modules on the host with the node_modules inside docker. docker-compose.yaml example
docker example
|
Yes, using docker and sometimes vagrant with virtual box |
Thanks will try today your solution |
Did you solve the problem? |
Thanks for helping me. For docker yes, but for vagrant still have an issue. Please, give some time and i will back with responce. Or maybe you have solution to solve for vagrant? |
Hello!
Before writing i searching the same issues but anyway not found a solution. :(
Used:
"bcrypt": "^5.1.1",
"@types/bcrypt": "^5.0.2",
"@nestjs/core": "^10.3.10",
Node tested,
node 20.17.0 (npm 10.8.2)
node 21.7.3 (npm 10.5.0)
node 22.5.1 (npm 10.8.3)
I used instruction from https://docs.nestjs.com/security/encryption-and-hashing site, but after starting dev or prod server i have an error:
full package.json
The text was updated successfully, but these errors were encountered: