Skip to content

Skip optional dependencies that can't run on the current engine #448

Description

@zkochan

If a package requires a certain engine or Node version to run, pnpm should

  • skip it if the dependency is optional
  • print a warning if engine-strict is false
  • fail if engine-strict is true

This package might help in implementation: https://github.com/npm/npm-install-checks

This is where npm does the check: https://github.com/npm/npm/blob/d081cc6c8d73f2aa698aab36605377c95e916224/lib/install/validate-args.js

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