Skip to content

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

@swarnadeepsaha

Description

@swarnadeepsaha

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions