Error deploiement nodejs express api
parzivalfr
TRIALOP
2 years ago
node:internal/modules/cjs/loader:1460
return process.dlopen(module, path.toNamespacedPath(filename));
^Error: /app/nodemodules/bcrypt/lib/binding/napi-v3/bcryptlib.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: 'ERRDLOPENFAILED'
}
Node.js v18.20.2
> ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
2 years ago
You are likely committing your node_modules folder to GitHub, make sure you remove it and add it to your .gitignore.