Jacob Coker-Dukowitz
04/12/2022, 8:27 PMdb/generated/client
, prisma works fine.
However, when I try to keep the client in its default location in node_modules
, I get this error:
(node:56637) UnhandledPromiseRejectionWarning: Error: Unable to load Node-API Library from node_modules/.prisma/client/libquery_engine-darwin.dylib.node, Library may be corrupt
Any thoughts?
The only related thing I can find online (unsupported node version), and in this slack thread (prisma not supported in M1) seem unrelated, as I'm using Node v 12.16.0 on a MacBook Pro, with Prisma v3.9.1 (and the client works fine when in a different location).
Anyone able to help me understand whats happening?Jacob Coker-Dukowitz
04/12/2022, 8:36 PMMacOS Big Sur, version 11.6
Model Name: MacBook Pro
Model Identifier: MacBookPro15,1
Application:
"@prisma/client": "3.9.1",
"prisma": "3.9.1"
Node v12.16.0
yarn v1.22.0
prisma.schema:
generator client {
provider = "prisma-client-js"
binaryTargets = ["native"]
}
datasource db {
provider = "postgresql"
}
Austin
04/12/2022, 9:17 PMnode_modules
and re-running npm install
? If you get the same error, opening a bug report with this info would be your best bet 👍.Jacob Coker-Dukowitz
04/12/2022, 9:21 PM