Another note on this subject -- I ran into problems when using engines.runtime or devEngines.runtime in the root package.json in a monorepo, without any Node installed in the system. The issue is that pnpm install fails due to post-install scripts not finding node. In that state, there was no node_modules/.bin in the root yet.
This seems to be alleviated by removing engines.runtime from the root package.json and using useNodeVersion: 24.11.1 in pnpm-workspace.yaml. So, only using engines.runtime and devEngines.runtime in individual workspace package.json.
I just wanted to mention this in case this does not align with the expected usage.
Originally posted by @markedwards in #10172 (comment)
Another note on this subject -- I ran into problems when using
engines.runtimeordevEngines.runtimein the rootpackage.jsonin a monorepo, without any Node installed in the system. The issue is thatpnpm installfails due to post-install scripts not findingnode. In that state, there was nonode_modules/.binin the root yet.This seems to be alleviated by removing
engines.runtimefrom the rootpackage.jsonand usinguseNodeVersion: 24.11.1inpnpm-workspace.yaml. So, only usingengines.runtimeanddevEngines.runtimein individual workspacepackage.json.I just wanted to mention this in case this does not align with the expected usage.
Originally posted by @markedwards in #10172 (comment)