[BUG] npm's strict engine check is confusing (when doing npm install npm
)
#6778
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 9.x
work is associated with a specific npm 9 release
Release 10.x
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
npm install --global npm
does a strict engine check with some confusing options:The check is not strictly enforced for non-global installation.
The check is not strictly enforced for
npm update --global npm
.The error message shown is generic and there's no indication that the check is due to installing
npm
in particular.The check is enforced by the installing
npm
, not by the install scripts of the version being installed. So the check is not applied when upgrading from npm@6 or when using another package manager such asyarn
orpnpm
. After installing, the warnings just taunt you that you made a bad decision and don't tell you how to restorenpm
to a working state.There is no obvious way to do the right thing when upgrading npm, namely installing the newest version compatible with the current node engine.
npm install --global npm
always resolves tonpm@latest
.See npm/template-oss#350 (comment)
Expected Behavior
No response
Steps To Reproduce
Environment
; copy and paste output from `npm config ls` here
The text was updated successfully, but these errors were encountered: