English 中文(简体)
无人知的双铁Tar-开bian-3.0.x ,没有给任何海关双aries提供错误的指挥,没有出走的法规。
原标题:Unknown binaryTarget debian-openssl-3.0.x and no custom binaries were provided error Command failed with exit code 1

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.

最佳回答

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.

有关Gite Hub Issue: 支持开放式服务 3.0

问题回答

维持项目中的以下指挥

npm install prisma --save-dev

npm install @prisma/client@dev prisma@dev

在我的案件中,我没有使用服务器进行部署,这就是我如何解决这个问题。

  1. I followed this Prisma tutorial HERE
  2. I added block of code below to my webpack.config.js file
plugins: [
    new CopyPlugin({
      patterns: [
        { from:  ./node_modules/.prisma/client/schema.prisma , to:  ./build/src  }, // you may need to change `to` here.
        { from:  ./node_modules/.prisma/client/libquery_engine-rhel-openssl-3.0.x.so.node , to:  ./build/src  }, // you may need to change `to` here.
      ],
    }),

注:./build/srcssssss may be different. 确保其与服务器文档入口处相同。





相关问题
SSL wrapper stream in C

I have a simple stream_t type in C with your basic read/write operations, and support for multiple underlying implementations using function pointers. So a stream could be backed by a file, a char ...

Access violation writing location

I have the following code: #include <openssl/bn.h> #include <openssl/rsa.h> unsigned char* key; RSA* rsa = RSA_new(); rsa = RSA_generate_key(1024,65537,NULL,NULL); //init pubkey key[...

Visual Studio merging DLL into console application

I have very simple program to simplify things as shown below... #include <openssl/evp.h> int main (int argc, char *argv[]) { EVP_CIPHER_CTX ctx; EVP_CIPHER_CTX_init(&ctx); } ...

Can t add static lib

I am trying to build a DLL and it needs to reference a library namely libeay32.dll from the openssl package. I cant seem to add it as a reference under the Property Pages->Common Properties->Add New ...

Php paypalewp on windows not working right, short return

I am working on a payment script using paypalewp, it seems to work fine in the stage environment which is a centos linux box, however on my dev box it doesn t... when I run the button creation ...

How do I get SSL working in fsockopen?

I m running PHP 5.2.6 on Windows, I have extension=php_curl.dll and extension=php_openssl.dll uncommented in php.ini; as such I can see the following in phpinfo: curl cURL support enabled cURL ...

Load RSA keys from files

I used openSSL command to create 2 files: 1 for RSA public key & 1 for RSA private key. How do I recover RSA keys using C? Specifically, I have these functions: RSA_public_encrypt(read_num, ...

OpenSSL on iPhone

I need to figure out how to get two OpenSSL functions for iPhone. I m trying to keep it so I don t need another dylib, because I don t want Apple to reject my application for something so silly. ...

热门标签