Skip to content

Stop recommending npm upgrade immediately after a npm upgrade #1502

@dilyanpalauzov

Description

@dilyanpalauzov

Doing

# npm outdated -g
Package  Current  Wanted  Latest  Location
npm       6.14.5  6.14.6  6.14.6  global
# npm upgrade -g
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
+ npm@6.14.6
updated 4 packages in 10.883s


   ╭────────────────────────────────────────────────────────────────╮
   │                                                                │
   │      New patch version of npm available! 6.14.5 → 6.14.6       │
   │   Changelog: https://github.com/npm/cli/releases/tag/v6.14.6   │
   │               Run npm install -g npm to update!                │
   │                                                                │
   ╰────────────────────────────────────────────────────────────────╯

# npm outdated -g
# 

When npm is just upgraded, it shall not print a message that it is outdated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Release 6.xwork is associated with a specific npm 6 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions