vercel build
is choosing node 22 which causes my npm to fail based on the "engines": { "node": "^20.15.1", "npm": "^10.7.0" }
in my package.json
I was a little confused where it was getting 22 from until I located the “project settings”. Once I updated those I can see that "nodeVersion": "20.x"
is getting brought into my package.json correctly with vercel pull
. But even after manually deleting the .vercel/output/builds.json
it keeps being regenerated with "argv": ["/Users/<my user>/.volta/tools/image/node/22.14.0/bin/node",
What am I missing?
I thought maybe it was picking up on my local volta settings, but even after nuking node 22 and switching to a global default of 20 the vercel build
seems to pick up 22 from somewhere.