Hi all, all of a sudden after upgrading to 2.25.0 ...
# orm-help
y
Hi all, all of a sudden after upgrading to 2.25.0 I got this error.
Copy code
Query engine binary for current platform "darwin" could not be found.
This probably happens, because you built Prisma Client on a different platform.
(Prisma Client looked in "/query-engine-darwin")

Searched Locations:

  /.prisma/client
  /Users/metoikos/xxx/project/node_modules/lib/node_modules/@prisma/client
  /
  /
  /
  /tmp/prisma-engines
  /
The engine at the
project/node_modules/.prisma/client/query-engine-darwin
and
/Users/metoikos/xxx/project/node_modules/lib/node_modules/.prisma/client
path I can see it but somehow Prisma cannot found. Is there a way that I can point client to the right location to find the engine.
and also I did’t understand those root locations above the
/tmp/prisma-engines
Copy code
generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["orderByRelation"]
  binaryTargets   = ["native", "rhel-openssl-1.0.x"]
}
this is the client definition
r
@Yilmaz Ugurlu 👋 This looks like a bug. It would be great if you could create an issue here with the reproduction steps and also what version are you upgrading from so that we can look into this.
👍 1
j
As a quick fix, you should be able to use https://www.prisma.io/docs/reference/api-reference/environment-variables-reference/#prisma_query_engine_binary to force the path to the existing file.
But please open an issue! Also include which version you were upgrading from and how your project is set up - the
node_modules/lib
thing looks interesting.