problems with prisma and turborepo going on prod
Unanswered
Abert's Towhee posted this in #help-forum
Abert's TowheeOP
The issue is that i can get it to build with-out the postinstall script in the package.json but using it, it just fails on vercel and i need it to fetch things from the database properly
Running build in Washington, D.C., USA (East) – iad1
Build machine configuration: 4 cores, 8 GB
Cloning github.com/DigitalSunsets/tickets-repo (Branch: main, Commit: 90731e2)
Cloning completed: 480.000ms
Restored build cache from previous deployment (HZKzK4fefWHNUGSNUPr1YJ3H7x84)
Running "vercel build"
Vercel CLI 44.3.0
npm error code 1
npm error path /vercel/path0/apps/web
npm error command failed
npm error command sh -c npm --filter @repo/db db:postinstall --no-engine
npm error Unknown command: "@repo/db"
npm error
npm error To see a list of supported npm commands, run:
npm error npm help
npm error npm warn config ignoring workspace config at /vercel/path0/apps/web/.npmrc
npm error A complete log of this run can be found in: /vercel/.npm/_logs/2025-07-13T20_00_44_235Z-debug-0.log
Error: Command "npm install --prefix=../.." exited with 1
Exiting build container
Running build in Washington, D.C., USA (East) – iad1
Build machine configuration: 4 cores, 8 GB
Cloning github.com/DigitalSunsets/tickets-repo (Branch: main, Commit: 90731e2)
Cloning completed: 480.000ms
Restored build cache from previous deployment (HZKzK4fefWHNUGSNUPr1YJ3H7x84)
Running "vercel build"
Vercel CLI 44.3.0
Detected Turbo. Adjusting default settings...Running "install" command:
npm install --prefix=../..
...npm error code 1
npm error path /vercel/path0/apps/web
npm error command failed
npm error command sh -c npm --filter @repo/db db:postinstall --no-engine
npm error Unknown command: "@repo/db"
npm error
npm error To see a list of supported npm commands, run:
npm error npm help
npm error npm warn config ignoring workspace config at /vercel/path0/apps/web/.npmrc
npm error A complete log of this run can be found in: /vercel/.npm/_logs/2025-07-13T20_00_44_235Z-debug-0.log
Error: Command "npm install --prefix=../.." exited with 1
Exiting build container