PrismaP
Prisma10mo ago
6 replies
Luex

Using prisma in a bun monorepo

I am using a bun based monorepo with bun workspaces. I have package called prisma for my prisma client and schema. If i try to run prisma generate, it fails with this error:

prisma db:generate $ prisma generate
│ Environment variables loaded from .env
│ Prisma schema loaded from schema.prisma
│ Error: Command failed with exit code 1: npm i @prisma/client@6.5.0 --silent
└─ Exited with code 1
error: script "db:generate" exited with code 1

How can i run prisma inside a monorepo with multiple packages?
Was this page helpful?