Skip to content

[BUG] npm outdated does not list global installed packages #6098

@ItsIgnacioPortal

Description

@ItsIgnacioPortal

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

I have installed [email protected] globally by running npm install -g [email protected]. Running npm help outdated shows me the documentation, which lists global as a valid option. So I tried to run:

npm outdated -g

But it outputs nothing. Running all the possible variations:

npm outdated -g

npm outdated --global

npm outdated global

None of them give any output. I expected to see the available upgrade to [email protected]

Expected Behavior

npm outdated -g
Package     Current  Wanted  Latest  Location                 Depended by
calculator   0.1.11  0.1.12  0.1.12  node_modules/calculator  User

Steps To Reproduce

  1. npm install -g [email protected]
  2. npm outdated -g

Environment

I installed node through nvm 1.1.9

  • npm: 8.19.3
  • Node.js: v16.19.0
  • OS Name: Windows 22H2
  • System Model Name: ?
  • npm config:
; node bin location = C:\Program Files\nodejs\node.exe
; node version = v16.19.0
; npm local prefix = C:\Users\User
; npm version = 8.19.3
; cwd = C:\Users\User
; HOME = C:\Users\User
; Run `npm config ls -l` to show all defaults.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions