16

Is there any way I can solve this problem? I recently updated to Ubuntu 22.04 Getting the problem while using Prisma.I can't run my project. I have use "@prisma/client": "2.20.1"

Error: Unknown binaryTarget debian-openssl-3.0.x and no custom binaries were provided error Command failed with exit code 1.

Shohedul
  • 163
  • 1
  • 6

3 Answers3

23

You need to upgrade your prisma version to atleast 3.13.0. Prisma has added support for OpenSSL 3.0 from version 3.13.0, Ubuntu 22.04 is using OpenSSL 3.0 by default which is causing this issue for you.

Related GitHub Issue: Support OpenSSL 3.0

Nurul Sundarani
  • 5,550
  • 3
  • 23
  • 52
8

Run the following commands in project

npm install prisma --save-dev

npm install @prisma/client@dev prisma@dev
Umair Mateen
  • 171
  • 4
  • 3
    Thank you! This worked for me and I am appreciative. As an answer however, it does leave a bit to be desired. If you have the time, would you consider adding some explanation as far as what we are doing with these commands and why they solve the issue? – Jason L. Oct 10 '22 at 23:19
0

You might need to install the correct version of Prisma on your machine as mentioned in the post above.

If you still have this problem, you probably need to check your Node.js version, You may get this error if you are using a version below 18.

Run this command in terminal node -v.

The great way to manage your node versions especially if you working on different projects is by using NVM - Node Version Manager. So you can install Node 14, 16, 18 and ext... And switch between versions depending on the project. https://github.com/nvm-sh/nvm

Qui-Gon Jinn
  • 3,722
  • 3
  • 25
  • 32