Skip to content

strict engines check is inconsistent with npm #6627

@adanilev

Description

@adanilev

Do you want to request a feature or report a bug?

  • bug (feature?)

What is the current behavior?

  • Versions of node specified in the engines field in package.json are strictly enforced
  • npm behaviour is different, they allow the packages to be installed
  • This has resulted in non-breaking changes for npm users being breaking changes for yarn users. See: package.json engines, yarn, and semver rules hapijs/hapi#3859
  • Workaround is to use ignore engines in .yarnrc or use yarn --ignore-engines

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

  • That yarn applies the same level of strictness as npm by default. Perhaps add an option for strict checks and give a warning by default?

Please mention your node.js, yarn and operating system version.

  • macOS 10.13.6
  • yarn 1.9.4
  • npm 6.4.1
  • node v8.10.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions