Skip to content

[BUG] npm/node don't respect each other's versions #6836

@josh-m-sharpe

Description

@josh-m-sharpe

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

Edit: I am not using the latest npm....

If you install Node 16. Yes. Sixteen, in 2023. It will install npm v8.something.

It will then say this:

npm notice New major version of npm available! 8.19.4 -> 10.1.0

This is categorically untrue. npm 10x is not compatible with node 16. And if you install npm 10 insanity breaks out. Things don't work, and node do-do-doos along as if everything is peachy keen when it, in fact, is not.

This strikes me as a breakdown in node or npm's version management.

Expected Behavior

node/npm wouldn't suggest incompatible versions.

Steps To Reproduce

  1. install node16.
  2. get jiggy with node16 and do what it says - update to npm 10.
  3. Watch everything break

Environment

  • npm: 8.something
  • Node.js: 16
  • OS Name:
  • System Model Name:
  • npm config:
; copy and paste output from `npm config ls` here

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingPriority 2secondary priority issueRelease 10.xRelease 9.xwork is associated with a specific npm 9 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions