error in bcrypt module
amouryas362
TRIALOP

a year ago

node:internal/modules/cjs/loader:1460

return process.dlopen(module, path.toNamespacedPath(filename));

             ^

Error: /app/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node: invalid ELF header

at Module._extensions..node (node:internal/modules/cjs/loader:1460:18)

at Module.load (node:internal/modules/cjs/loader:1203:32)

at Module._load (node:internal/modules/cjs/loader:1019:12)

at Module.require (node:internal/modules/cjs/loader:1231:19)

at require (node:internal/modules/helpers:177:18)

at Object. (/app/node_modules/bcrypt/bcrypt.js:6:16)

at Module._compile (node:internal/modules/cjs/loader:1364:14)

at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)

at Module.load (node:internal/modules/cjs/loader:1203:32)

at Module._load (node:internal/modules/cjs/loader:1019:12) {

code: 'ERR_DLOPEN_FAILED'

}

Node.js v18.20.5

how to correct it for railway

View Deploy details

> ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

1 Replies

a year ago

Hello,

Please remove node_modules from your GitHub repo and make sure its your .gitignore going forward.


Status changed to Solved brody over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...