Hello, I am trying to build my project with nuxtbuild when I run the command
pnpm run build
pnpm run build
(
npx prisma generate && nuxt build
npx prisma generate && nuxt build
) The client generation works fine
Environment variables loaded from .envPrisma schema loaded from prisma/schema.prisma✔ Generated Prisma Client (v5.22.0) to ./node_modules/@prisma/client in 252ms
Environment variables loaded from .envPrisma schema loaded from prisma/schema.prisma✔ Generated Prisma Client (v5.22.0) to ./node_modules/@prisma/client in 252ms
but when the build launches, it crashes:
ERROR ✘ Failed to generate Prisma Client. I've seen that when the
nuxt build
nuxt build
command is run, the
@prisma/client
@prisma/client
package is moved from the dependencies to the devDependencies and then updated automatically, which is a problem... I've tried to correct this problem by adding an .npmrc but nothing helped