Installation failed in vercel
jtuluve opened this issue · comments
Issue Summary
I'm using sqlite3 in my nextjs project and deployed it in vercel. There was an error in deployment due to GLIBC.(error given) How can I resolve this?
It works in my localhost and I'm facing this problem only during deployment in vercel. I'm using v5.1.6 of sqlite3.
Thank you.
Relevant logs or output
npm ERR! code 1
12:23:48.429 | npm ERR! path /vercel/path0/node_modules/sqlite3
12:23:48.430 | npm ERR! command failed
12:23:48.431 | npm ERR! command sh -c node-pre-gyp install --fallback-to-build
12:23:48.431 | npm ERR! node: /lib64/libm.so.6: version 'GLIBC_2.27' not found (required by node)
12:23:48.431 | npm ERR! node: /lib64/libc.so.6: version 'GLIBC_2.27' not found (required by node)
12:23:48.431 | npm ERR! node: /lib64/libc.so.6: version 'GLIBC_2.28' not found (required by node)
12:23:48.432 |
12:23:48.432 | npm ERR! A complete log of this run can be found in: /vercel/.npm/_logs/2023-11-07T06_53_43_332Z-debug-0.log
12:23:48.446 | Error: Command "npm install" exited with 1
Version
5.1.6
Node.js Version
18.x
How did you install the library?
using npm.
I resolved it by removing node from the package.json dependencies. The error wasn't caused by sqlite and I misunderstood it. I will close this issue. Thank you.