LinuxCommandLibrary

npm-outdated

checks the registry for newer versions of installed packages

TLDR

Check outdated packages

$ npm outdated
copy
Check global packages
$ npm outdated -g
copy
Output as JSON
$ npm outdated --json
copy
Check specific package
$ npm outdated [package]
copy
Long format output
$ npm outdated --long
copy

SYNOPSIS

npm outdated [options] [packages...]

DESCRIPTION

npm outdated checks the registry for newer versions of installed packages. It shows current, wanted (by semver range), and latest versions.
Color coding: red for major updates, yellow for minor updates.

PARAMETERS

-g, --global

Check global packages.
--json
JSON output.
--long
Extended information.
--depth n
Max depth to check.
--all
Show all packages.

OUTPUT COLUMNS

$ Package   Current  Wanted  Latest  Location
lodash    4.17.0   4.17.21 4.17.21 node_modules/lodash

Current - Installed version
Wanted  - Max version satisfying semver
Latest  - Latest version in registry
copy

EXAMPLE

$ $ npm outdated
Package  Current  Wanted  Latest
express  4.17.1   4.18.2  4.18.2
lodash   4.17.0   4.17.21 4.17.21
copy

CAVEATS

Only shows direct dependencies by default. Doesn't update packages. Use npm update to apply updates.

HISTORY

npm outdated was added to npm to help developers identify packages that need updating, complementing npm update.

SEE ALSO

npm(1), npm-update(1), npm-ls(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community