Skip to content

[BUG] engine-strict does not work #786

@jnardone

Description

@jnardone

The NPM CLI option "engine-strict" (not to be confused with the engineStrict package.json, which is deprecated) does not work. It does not error out when set to true.

I'm 99% sure it's due to this

npm/npm-install-checks#10

which, as part of deprecating engineStrict completely removed the option to check strictly at all,

NPM CLI still passes the flag to this routine expecting it to respect the flag:

checkEngine(pkg, npm.version, nodeVersion, force, strict, iferr(next, thenWarnEngineIssues))

So, I'd say

  • either have the dependency fix their bug
    or
  • move strict enforcement check into the NPM CLI
    or
  • deprecate this option in the NPM CLI (boo, i think there's a use case here)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions