Skip to content

Examine 'engines.pnpm' in package.json #1382

Description

@KSXGitHub

Code to reproduce the issue:

Step 1: Create package.json with the following content

{
  "private": true,
  "version": "0.0.0",
  "engines": {
    "pnpm": ">= 99999.0.0"
  }
}

Step 2: Run pnpm install ...

Expected behavior:

pnpm should at least warn user for not using demanded version.

Actual behavior:

pnpm goes ahead and installs dependencies anyway

Why?

  • pnpm can be used to manage monorepo.
  • Different pnpm versions might provide different monorepo features.
  • Different monorepos might demand different features from pnpm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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