Error: /app/node_modules/sqlite3/build/Release/node_sqlite3.node: invalid ELF header

gabby_456
TRIAL

10 months ago

idk what to do with this error ;-

/app/node_modules/bindings/bindings.js:121

    throw e;

    ^

Error: /app/nodemodules/sqlite3/build/Release/nodesqlite3.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 bindings (/app/node_modules/bindings/bindings.js:112:48)

at Object. (/app/node_modules/sqlite3/lib/sqlite3-binding.js:1:37)

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) {

code: 'ERRDLOPENFAILED'

}

Node.js v18.20.2

container event container died

i saw a post where a railway employee said to put the sqlite database in gitingnore, i did that too but then it shows me the error that "Module is not found" = sqlite and when i install using npm it gives me the above error. please helppp as it was working fine a few hours ago

View Deploy details

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

1 Replies

10 months ago

Are you committing your node_modules folder to GitHub? if so, don't do that, delete it from GitHub and then make sure it's in your .gitignore


Error: /app/node_modules/sqlite3/build/Release/node_sqlite3.node: invalid ELF header - Railway Help Station