cal.com
cal.com copied to clipboard
[CAL-661] ERESOLVE unable to resolve dependency tree
Issue Summary
Unable to deploy to Railway: ERESOLVE unable to resolve dependency tree
I'm following this guide: https://blog.railway.app/p/calendso
Steps to Reproduce
- Run
railway run npx prisma db push
- I get the error below, it seems issue is with
peer prisma@"^3.0.0" from [email protected]
PS C:\Users\charles\Documents\GitHub\cal_sec> railway run npx prisma db push
A newer version of the Railway CLI is available, please update to: v2.0.11
Environment variables loaded from packages\prisma\.env
Prisma schema loaded from packages\prisma\schema.prisma
Datasource "db": PostgreSQL database "railway", schema "public" at "containers-us-west-64.railway.app:7267"
The database is already in sync with the Prisma schema.
Running generate... (Use --skip-generate to skip the generators)
npm WARN idealTree Removing dependencies.prisma in favor of devDependencies.prisma
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @calcom/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/prisma
npm ERR! dev prisma@"4.3.1" from @calcom/[email protected]
npm ERR! packages/prisma
npm ERR! @calcom/[email protected]
npm ERR! node_modules/@calcom/prisma
npm ERR! workspace packages\prisma from the root project
npm ERR! 21 more (@calcom/web, @calcom/example-app, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer prisma@"^3.0.0" from [email protected]
npm ERR! node_modules/zod-prisma
npm ERR! zod-prisma@"^0.5.4" from @calcom/[email protected]
npm ERR! packages/prisma
npm ERR! @calcom/[email protected]
npm ERR! node_modules/@calcom/prisma
npm ERR! workspace packages\prisma from the root project
npm ERR! 21 more (@calcom/web, @calcom/example-app, ...)
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\charles\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\charles\AppData\Local\npm-cache\_logs\2022-09-13T19_48_53_301Z-debug-0.log
Error: spawn zod-prisma ENOENT
exit status 1
I tried to pin node to 14 without luck:
"engines": {
"node": "14.x",
"npm": ">=7.0.0",
"yarn": ">=1.19.0 < 2.0.0"
},
Hi there. Thanks for reaching out. Our team will investigate this.
Best,
Same happened to me. I also tried to pin node to 14, but didn't resolve the issue.
we're investigating a lot more "getting started" bugs in early Q1.
is this still happening?