Skip to content
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

Enable npm engine-strict to test for unsupported dependencies #509

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bmish
Copy link

@bmish bmish commented Dec 5, 2024

Detect issues like:

It turns a warning into a fatal error so that the issue would be caught on CI when testing against the supported Node versions:

❯ npm ci
npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: [email protected]
npm ERR! notsup Not compatible with your version of node/npm: [email protected]
npm ERR! notsup Required: {"node":"20 || >=22"}
npm ERR! notsup Actual:   {"npm":"10.5.0","node":"v18.20.2"}

Personally, I wish this was the default behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant