To fix bcrypt invalid elf header error when running Node app, we should use a bcrypt version that’s compatible with the OS the app is running.
To do this, we run
npm install bcrypt
to install bcrypt
on the current operating system so that it’s built to run on the current OS.