10 months ago
I'm trying to understand what's going on here because multiple things make no sense.
my package.json in my nx monorepo says:
"engines": { "node": ">=20.19.0", "npm": "please-use-pnpm", "pnpm": "~10.10.0", "yarn": "please-use-pnpm" }
When the deploy runs railway detects:
Packages
──────────
node │ 18.20.8 │ package.json > engines > node (^18.15.0)
pnpm │ 7.33.7 │ pnpm-lock.yaml (7)
and then when the pnpm step happens it fails with:
ERR_PNPM_UNSUPPORTED_ENGINE Unsupported environment (bad pnpm and/or Node.js version)
Your Node version is incompatible with "/@prisma/client/5.0.0_prisma@5.0.0".
Expected version: >=16.13
Got: v14.20.0
This is happening because the package's manifest has an engines.node field specified.
To fix this issue, install the required Node version.
2 Replies
10 months ago
Hey there! We've found the following might help you get unblocked faster:
- 🧵 node version mismatch with corepack
- 🧵 Error accessing database
- 🧵 Container builds successfully but produces zero deploy logs
If you find the answer from one of these, please let us know by solving the thread!
10 months ago
Ciao!
Can you see if setting the variable RAILPACK_NODE_VERSION to 22 fixes the issue? This will override any other option.