Skip to content

postinstall script fails on system with no node.js installed #10244

@zkochan

Description

@zkochan

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)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions