OpenSSL is not installed

I have been trying to use Prisma, but everytime I try to use: new PrismaClient(), it throws this error:

I’ve already done some research, however, nothing worked.

Could someone help me, please?

Add it via Nix: here you could in Shell:

sed -i 's/];/  pkgs.libressl\
  &/' replit.nix
1 Like

Thank you, I ran the command you suggested, but it didn’t work, the error stills the same, my replit.nix is like this now:

{ pkgs }: {
    deps = [
        pkgs.nodejs-18_x
    pkgs.nodePackages.typescript-language-server
    pkgs.yarn
    pkgs.replitPackages.jest
    pkgs.openssl
      pkgs.libressl
  ];
}

oops, I didn’t read the error properly. You want pkgs.openssl_1_1 in the deps

2 Likes

I changed the replit.nix putting the version as you said, but the error stills the same

The error was solved by adding PRISMA_CLI_QUERY_ENGINE_TYPE = "binary" in the .replit file, more precisely in the [env] part, and in the prisma.scheme, add in the generator the engineType, with the value: “binary”
Thank you guys :smiling_face:

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.