我试着运行我的prisma代码,但我得到了这个错误:
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
}
字符串
我不知道该怎么办
我尝试再次安装glibc,但它不工作,我也有最新版本的节点,所以idk,如果这是问题(18.17.1)
2条答案
按热度按时间vddsk6oq1#
只是升级到最新节点版本(v 20.xx.xx),它为我工作。
pxiryf3j2#
我在这个链接上找到了修复:https://github.com/prisma/prisma/issues/9174
我基本上不得不删除节点的快照版本,并从这个链接安装它:https://github.com/nodesource/distributions/blob/master/README.md#deb