Error: Unable to establish a connection to query-engine-node-api library

452 views Asked by At

I'm facing an issue anyone here to help me with Prisma? I am trying to deploy my Backend API on Cpanel hosting it's created by Prisma MySQL for database design and expressJs. But, I tried a lot's of ways and I have recharged but never got any solution. when I run

npx prisma generate or npx prisma migrate

it's says to me

Error: Unable to establish a connection to query-engine-node-api library. It seems that the current architecture x64 is not supported, or that libc is missing from the system.
Details: Unable to require(`/home/crafiebs/nodevenv/node_api/14/lib/node_modules/prisma/libquery_engine-debian-openssl-1.0.x.so.node`)
 /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/crafiebs/nodevenv/node_api/14/lib/node_modules/prisma/libquery_engine-debian-openssl-1.0.x.so.node)
1

There are 1 answers

3
psiU On

You should install openssl on your server. Maybe this link can help you https://support.cpanel.net/hc/en-us/articles/4403778152087-How-to-install-OpenSSL