Skip to content

pnpm should use the active Node.js version to check package compatibility #3785

Description

@zkochan

pnpm version:

Code to reproduce the issue:

Run install with the package version of the pnpm CLI, the one that is bundled with Node.js

Expected behavior:

pnpm should check that the installed dependencies are compatible with the system-installed Node.js, not the Node.js with which pnpm is bundled.

Possible solution. The pnpm env use -g <version> should save the active Node.js version to the global config. pnpm should read the active Node.js version from the global config.

Actual behavior:

Additional information:

  • node -v prints:
  • Windows, macOS, or Linux?:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions