-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Description
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 useyarn --ignore-engines
If the current behavior is a bug, please provide the steps to reproduce.
- Clone this repo: https://github.com/adanilev/test-engine-checks
- Run
yarn
and observe output - Run
npm i
and observe output - See the engines section in boom's package.json
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