-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] npm/node don't respect each other's versions #6836
Comments
To be clear, not asking for anyone to fix node 16. Think we should fix latest versions of things to properly manage version dependencies. |
I think the solution here would be to change our update-notifier to follow the same logic we do when attempting to install Lines 109 to 127 in 6500218
This will likely never make it into npm@8 and fix this specific case, but we can help future major versions of node and npm avoid this problem. |
👍 |
Looks to me like the |
Is there an existing issue for this?
This issue exists in the latest npm version
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
Environment
; copy and paste output from `npm config ls` here
The text was updated successfully, but these errors were encountered: