I am developing an app using fastify 5.6 & better-sqlite3 - 12.2.0 all is well and better-sqlite3 speed is phenomenal. The development was done in Windows 11 machine.
I am trying to host this in a shared hosting environment. The details are
Cloudlinux litespeed Cpanel Node version 22.18.0 When I try to install the app I get this error npm error prebuild-install warn install /lib64/libm.so.6: version `GLIBC_2.29' not found
When I checked the Terminal this server has Glibc ver 2.28. I tried downgrading the version of better-sqlite till 7.5.3 the error still persists.
Is there any workaround for this issue? I read about something called pre-built binaries and with my inexperience couldn't make any sense out of it. Unfortunately I cannot upgrade the server or Glibc? I am hard bound to this server for the next 18 months.
Linking a generic article that my hosting service provider has shared for the details on hosting nodejs applications in cpanel shared hosting. I have the option to choose multiple node version way down till 10.24.1.