Skip to content
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 prompts v7 to be upgraded to and installs with Node 8 #2625

Closed
fluxsauce opened this issue Feb 4, 2021 · 0 comments · Fixed by npm/run-script#21 or #2654
Closed

[BUG] npm prompts v7 to be upgraded to and installs with Node 8 #2625

fluxsauce opened this issue Feb 4, 2021 · 0 comments · Fixed by npm/run-script#21 or #2654
Labels
Bug thing that needs fixing Priority 2 secondary priority issue Release 6.x work is associated with a specific npm 6 release Release 7.x work is associated with a specific npm 7 release

Comments

@fluxsauce
Copy link

Current Behavior:

When running Node 8 LTS, npm advertises incompatible version of npm:

   ╭───────────────────────────────────────────────────────────────╮
   │                                                               │
   │      New major version of npm available! 6.13.4 → 7.5.2       │
   │   Changelog: https://github.com/npm/cli/releases/tag/v7.5.2   │
   │               Run npm install -g npm to update!               │
   │                                                               │
   ╰───────────────────────────────────────────────────────────────╯

npm i -g npm upgrades to an incompatible version of npm if you're running an unsupported version of Node.

Expected Behavior:

  • npm doesn't recommend v7 if you're not using a compatible version of node
  • Latest 6.x version is installed (last supported by Node 8).

Steps To Reproduce:

  1. Node 8 LTS installed
  2. npm v6 installed
  3. npm i npm -g
jonpeck@tec-jpeck-linux:~$ node --version
v8.17.0
jonpeck@tec-jpeck-linux:~$ npm i -g npm
/home/jonpeck/n/bin/npm -> /home/jonpeck/n/lib/node_modules/npm/bin/npm-cli.js
/home/jonpeck/n/bin/npx -> /home/jonpeck/n/lib/node_modules/npm/bin/npx-cli.js
npm WARN notsup Unsupported engine for npm@7.5.2: wanted: {"node":">=10"} (current: {"node":"8.17.0","npm":"6.13.4"})
npm WARN notsup Not compatible with your version of node/npm: npm@7.5.2

+ npm@7.5.2
added 59 packages from 30 contributors, removed 235 packages and updated 192 packages in 2.82s
jonpeck@tec-jpeck-linux:~$ npm --version
TypeError: Cannot destructure property `stat` of 'undefined' or 'null'.
... (Node compatibility error continues)

Environment:

  • Ubuntu 20.04.2 LTS
  • Node v8.17.0
  • npm 6.14.11
@fluxsauce fluxsauce added Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release labels Feb 4, 2021
@ljharb ljharb added the Release 6.x work is associated with a specific npm 6 release label Feb 4, 2021
@darcyclarke darcyclarke added Priority 2 secondary priority issue and removed Needs Triage needs review for next steps labels Feb 5, 2021
ljharb added a commit to ljharb/cli that referenced this issue Feb 8, 2021
ljharb added a commit to ljharb/cli that referenced this issue Feb 8, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 8, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
@ljharb ljharb reopened this Feb 10, 2021
ljharb added a commit to ljharb/cli that referenced this issue Feb 10, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
@ljharb ljharb reopened this Feb 10, 2021
ljharb added a commit to ljharb/cli that referenced this issue Feb 10, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 10, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 10, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 10, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 11, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 11, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 11, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 11, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 11, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 11, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 11, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 11, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 11, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 11, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 11, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 11, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 11, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 11, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 12, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 12, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 12, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
ljharb added a commit to ljharb/cli that referenced this issue Feb 12, 2021
In this node version, fall back to `util.promisify` of the callback version.

Maybe fixes npm#2623. Maybe fixes npm#2652. Maybe fixes npm#2625.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Priority 2 secondary priority issue Release 6.x work is associated with a specific npm 6 release Release 7.x work is associated with a specific npm 7 release
Projects
None yet
3 participants