Skip to content

Node runtime added as dependency when running pnpm add  #10209

@zkochan

Description

@zkochan

Separate question -- after adding this:

  "engines": {
    "runtime": {
      "name": "node",
      "version": "24.11.1",
      "onFail": "download"
    }
  },

pnpm wants to add "node": "runtime:24.11.1" to dependencies whenever pnpm add is used to add anything. Is this expected? Should node be added to dependencies when declaring the above?

If so, shouldn't this be covered in docs?

This behavior is not observed when using devEngines (node is not added to devDependencies when using pnpm add). Is this maybe a bug?

Originally posted by @markedwards in #10172 (comment)

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions