PNPM being weird
pnpm run build (or run any command)
ERR_PNPM_INVALID_NODE_VERSION "21" is not a valid Node.js version
The correct syntax for stable release is strictly X.Y.Z or release/X.Y.Z
anyone ever faced this weird error? whatever command i run it just keeps showing this. it's weird and idk how to fix
1 Reply
Without reading pnpm source code I can’t say definitively, but node 21 is end of life, try downgrading to 20 or upgrading to 22