question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Unable to require(`/node_modules/prisma/libquery_engine-debian-openssl-3.0.x.so.node`)

See original GitHub issue

“prisma”: “^3.13.0”, “@prisma/client”: “^3.13.0”, node v16.14.0 Ubuntu 22.04

comand: yarn prisma generate response:

yarn run v1.22.18
$ /node_modules/.bin/prisma generate
Environment variables loaded from .env
Prisma schema loaded from src/infra/repository/prisma/schema.prisma
Error: Unable to require(`/node_modules/prisma/libquery_engine-debian-openssl-3.0.x.so.node`)
 /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)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:23 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
Crymecommented, May 11, 2022

I had the same issue after upgrading to ubuntu 22 from 21, node was installed using snap! What helped: remove snap version, install with apt.

5reactions
gBusatocommented, Apr 30, 2022

For anyone who is still having the issue even with : "@prisma/client": "3.13.0" and "prisma" : "3.13.0"

I have simply followed the what was shared at this comment : link .

Here is what I have done :

  1. I havee downgraded my open ssl version to the latest available for me ( check this link for me it was : libssl1.1 1.1.1l-1ubuntu1 in amd64 (Release)
  2. I have followed all the steps in this tutorial : How to install openssl in ubuntu, in this tutorial the guy reference libssl1.1.1c but I did replace it with the latest one libssl1.1.1l
  3. Once the tutorial completed, it was working ! 🔥
Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - error states Unable to require(node_modules/prisma ...
It seems there is an issue with the version of OpenSSL installed on your machine. You might need to (re)install OpenSSL.
Read more >
Error: Unable to require(`/node_modules/prisma ... - bytemeta
yarn run v1.22.18 $ /node_modules/.bin/prisma generate Environment variables loaded from .env Prisma schema loaded from src/infra/repository/prisma/schema.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found