-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] npm install ignores engines + engine-strict=true #2175
Comments
Can you try with npm v7.0.11? |
I think I did that right - it didn't seem to make a difference:
|
Oh sorry, that was wrong. NPM still checks the engine version and respects the strict flag. My problem is, that the timing of the check has probably been changed. Looks like the check is now after the dependencies are installed. Maybe some identically behavior change like the preinstall script. |
@RobertHaedrich2012 this seems to be working as intended on v7 now ( package.json
Output
|
Current Behavior:
When using npm v7.0.2 or greater, setting
"engines": { "node": ">=14.15.0 <15.0.0" },
inpackage.json
andengine-strict=true
in.npmrc
seems to be ignored.Expected Behavior:
It should error if the current version is outside of the specified range when trying to
npm install
Steps To Reproduce:
npm init
"engines": { "node": ">=14.15.0 <15.0.0" },
topackage.json
engine-strict=true
to.npmrc
npm install
Environment:
macOS Catalina 10.15.5
The text was updated successfully, but these errors were encountered: