I tried running my prisma code but I got this error:
PrismaClientInitializationError: Unable to require(`/media/ubuntu/Storage/Projects/prisma/node_modules/.prisma/client/libquery_engine-debian-openssl-3.0.x.so.node`).
Prisma has detected an incompatible version of the `glibc` C standard library installed in your system. This probably means your system may be too old to run Prisma. Please refer to the documentation about Prisma's system requirements: https://pris.ly/d/system-requirements
Details: /snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /lib/x86_64-linux-gnu/libcrypto.so.3)
at dn.loadLibrary (/media/akhadkhou/Storage/Projects/prisma/node_modules/@prisma/client/runtime/library.js:112:9956)
at async pr.loadEngine (/media/akhadkhou/Storage/Projects/prisma/node_modules/@prisma/client/runtime/library.js:114:447)
at async pr.instantiateLibrary (/media/akhadkhou/Storage/Projects/prisma/node_modules/@prisma/client/runtime/library.js:113:1762) {
clientVersion: '5.2.0',
errorCode: undefined
}
and I don’t know what to do
I tried installing glibc again but it didn’t work I also have the latest version of node so idk if that’s the issue (18.17.1)
2
Answers
I found a fix on this link: https://github.com/prisma/prisma/issues/9174
and I basically had to remove the snap version of node and install it from this link instead: https://github.com/nodesource/distributions/blob/master/README.md#deb
just upgrade node version into newest (v 20.xx.xx), it’s work for me.