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

npm install failed in engine strict mode for npm >=7 check #476

Closed
swarnadeepsaha opened this issue May 26, 2023 · 2 comments
Closed

npm install failed in engine strict mode for npm >=7 check #476

swarnadeepsaha opened this issue May 26, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@swarnadeepsaha
Copy link

swarnadeepsaha commented May 26, 2023

Describe the bug
In this change
npm engine >=7 create an issue where npm >=6.14 <7.

To Reproduce

  • node 14 minimum requirements (npm is >=6.14) with engine-strict=true.
    https://nodejs.org/en/download/releases
  • Or install node 14 using the node version manager(nvm) tool with engine-strict=true.

npm install will fail with:

npm ERR! code ENOTSUP
npm ERR! notsup Unsupported engine for yaml@2.3.0: wanted: {"node":">= 14","npm":">= 7"} (current: {"node":"14.20.0","npm":"6.14.17"})
npm ERR! notsup Not compatible with your version of node/npm: yaml@2.3.0
npm ERR! notsup Not compatible with your version of node/npm: yaml@2.3.0
npm ERR! notsup Required: {"node":">= 14","npm":">= 7"}
npm ERR! notsup Actual:   {"npm":"6.14.17","node":"14.20.0"}

Expected behavior
npm >= 6.14, not npm >= 7

Versions:

  • Environment: Node.js 14.20.0
  • yaml: 2.3.0
@swarnadeepsaha swarnadeepsaha added the bug Something isn't working label May 26, 2023
@eemeli
Copy link
Owner

eemeli commented May 26, 2023

That's a bit unfortunate, as npm v7 is required for the build. Guess we'll need to drop it from the engines config.

I would also encourage you to consider updating your environment, as Node.js v14 has reached its end of life.

@eemeli eemeli closed this as completed in 1f7fb2f May 26, 2023
@swarnadeepsaha
Copy link
Author

That's a bit unfortunate, as npm v7 is required for the build. Guess we'll need to drop it from the engines config.

I would also encourage you to consider updating your environment, as Node.js v14 has reached its end of life.

Yes, node upgrade is on the list too.
Thanks @eemeli for the quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants