2021-05-10 17:31:02 -04:00
|
|
|
.TH "NPM\-OUTDATED" "1" "May 2021" "" ""
|
2011-11-26 09:21:03 -08:00
|
|
|
.SH "NAME"
|
2019-11-18 21:01:39 +02:00
|
|
|
\fBnpm-outdated\fR \- Check for outdated packages
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS Synopsis
|
2014-09-24 14:41:07 -07:00
|
|
|
.P
|
|
|
|
.RS 2
|
2014-11-04 15:08:12 -08:00
|
|
|
.nf
|
2015-10-09 23:13:57 -07:00
|
|
|
npm outdated [[<@scope>/]<pkg> \.\.\.]
|
2014-11-04 15:08:12 -08:00
|
|
|
.fi
|
2014-09-24 14:41:07 -07:00
|
|
|
.RE
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS Description
|
2014-09-24 14:41:07 -07:00
|
|
|
.P
|
2011-11-26 09:21:03 -08:00
|
|
|
This command will check the registry to see if any (or, specific) installed
|
|
|
|
packages are currently outdated\.
|
2013-10-24 09:21:59 -07:00
|
|
|
.P
|
2020-12-11 18:54:56 -05:00
|
|
|
By default, only the direct dependencies of the root project are shown\.
|
|
|
|
Use \fB\-\-all\fP to find all outdated meta\-dependencies as well\.
|
|
|
|
.P
|
2016-01-28 18:11:35 -08:00
|
|
|
In the output:
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
|
|
|
\fBwanted\fP is the maximum version of the package that satisfies the semver
|
2020-12-11 18:54:56 -05:00
|
|
|
range specified in \fBpackage\.json\fP\|\. If there's no available semver range
|
|
|
|
(i\.e\. you're running \fBnpm outdated \-\-global\fP, or the package isn't
|
|
|
|
included in \fBpackage\.json\fP), then \fBwanted\fP shows the currently\-installed
|
|
|
|
version\.
|
2016-01-28 18:11:35 -08:00
|
|
|
.IP \(bu 2
|
|
|
|
\fBlatest\fP is the version of the package tagged as latest in the registry\.
|
2020-12-11 18:54:56 -05:00
|
|
|
Running \fBnpm publish\fP with no special configuration will publish the
|
|
|
|
package with a dist\-tag of \fBlatest\fP\|\. This may or may not be the maximum
|
|
|
|
version of the package, or the most\-recently published version of the
|
|
|
|
package, depending on how the package's developer manages the latest
|
|
|
|
npm help dist\-tag\.
|
2016-01-28 18:11:35 -08:00
|
|
|
.IP \(bu 2
|
2020-10-02 17:52:19 -04:00
|
|
|
\fBlocation\fP is where in the physical tree the package is located\.
|
|
|
|
.IP \(bu 2
|
|
|
|
\fBdepended by\fP shows which package depends on the displayed dependency
|
2016-01-28 18:11:35 -08:00
|
|
|
.IP \(bu 2
|
2020-12-11 18:54:56 -05:00
|
|
|
\fBpackage type\fP (when using \fB\-\-long\fP / \fB\-l\fP) tells you whether this
|
|
|
|
package is a \fBdependency\fP or a dev/peer/optional dependency\. Packages not
|
|
|
|
included in \fBpackage\.json\fP are always marked \fBdependencies\fP\|\.
|
2018-04-20 18:26:37 -07:00
|
|
|
.IP \(bu 2
|
2020-12-11 18:54:56 -05:00
|
|
|
\fBhomepage\fP (when using \fB\-\-long\fP / \fB\-l\fP) is the \fBhomepage\fP value contained
|
|
|
|
in the package's packument
|
2018-11-29 14:05:52 -08:00
|
|
|
.IP \(bu 2
|
2020-12-11 18:54:56 -05:00
|
|
|
Red means there's a newer version matching your semver requirements, so
|
|
|
|
you should update now\.
|
2018-04-20 18:26:37 -07:00
|
|
|
.IP \(bu 2
|
2020-12-11 18:54:56 -05:00
|
|
|
Yellow indicates that there's a newer version \fIabove\fR your semver
|
|
|
|
requirements (usually new major, or new 0\.x minor) so proceed with
|
|
|
|
caution\.
|
2016-01-28 18:11:35 -08:00
|
|
|
|
|
|
|
.RE
|
|
|
|
.SS An example
|
|
|
|
.P
|
|
|
|
.RS 2
|
|
|
|
.nf
|
|
|
|
$ npm outdated
|
2020-10-02 17:52:19 -04:00
|
|
|
Package Current Wanted Latest Location Depended by
|
|
|
|
glob 5\.0\.15 5\.0\.15 6\.0\.1 node_modules/glob dependent\-package\-name
|
|
|
|
nothingness 0\.0\.3 git git node_modules/nothingness dependent\-package\-name
|
|
|
|
npm 3\.5\.1 3\.5\.2 3\.5\.1 node_modules/npm dependent\-package\-name
|
|
|
|
local\-dev 0\.0\.3 linked linked local\-dev dependent\-package\-name
|
|
|
|
once 1\.3\.2 1\.3\.3 1\.3\.3 node_modules/once dependent\-package\-name
|
2016-01-28 18:11:35 -08:00
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.P
|
|
|
|
With these \fBdependencies\fP:
|
|
|
|
.P
|
|
|
|
.RS 2
|
|
|
|
.nf
|
|
|
|
{
|
|
|
|
"glob": "^5\.0\.15",
|
|
|
|
"nothingness": "github:othiym23/nothingness#master",
|
|
|
|
"npm": "^3\.5\.1",
|
|
|
|
"once": "^1\.3\.1"
|
|
|
|
}
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.P
|
|
|
|
A few things to note:
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2020-12-11 18:54:56 -05:00
|
|
|
\fBglob\fP requires \fB^5\fP, which prevents npm from installing \fBglob@6\fP, which
|
|
|
|
is outside the semver range\.
|
2016-01-28 18:11:35 -08:00
|
|
|
.IP \(bu 2
|
2020-12-11 18:54:56 -05:00
|
|
|
Git dependencies will always be reinstalled, because of how they're
|
|
|
|
specified\. The installed committish might satisfy the dependency
|
|
|
|
specifier (if it's something immutable, like a commit SHA), or it might
|
|
|
|
not, so \fBnpm outdated\fP and \fBnpm update\fP have to fetch Git repos to check\.
|
|
|
|
This is why currently doing a reinstall of a Git dependency always forces
|
|
|
|
a new clone and install\.
|
2016-01-28 18:11:35 -08:00
|
|
|
.IP \(bu 2
|
2020-12-11 18:54:56 -05:00
|
|
|
\fBnpm@3\.5\.2\fP is marked as "wanted", but "latest" is \fBnpm@3\.5\.1\fP because
|
|
|
|
npm uses dist\-tags to manage its \fBlatest\fP and \fBnext\fP release channels\.
|
|
|
|
\fBnpm update\fP will install the \fInewest\fR version, but \fBnpm install npm\fP
|
|
|
|
(with no semver range) will install whatever's tagged as \fBlatest\fP\|\.
|
2016-01-28 18:11:35 -08:00
|
|
|
.IP \(bu 2
|
2020-12-11 18:54:56 -05:00
|
|
|
\fBonce\fP is just plain out of date\. Reinstalling \fBnode_modules\fP from
|
|
|
|
scratch or running \fBnpm update\fP will bring it up to spec\.
|
2016-01-28 18:11:35 -08:00
|
|
|
|
|
|
|
.RE
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS Configuration
|
2014-09-24 14:41:07 -07:00
|
|
|
.SS json
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2014-02-12 18:16:32 -08:00
|
|
|
Default: false
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2014-02-12 18:16:32 -08:00
|
|
|
Type: Boolean
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|
2014-02-12 18:16:32 -08:00
|
|
|
.P
|
|
|
|
Show information in JSON format\.
|
2014-09-24 14:41:07 -07:00
|
|
|
.SS long
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2014-02-12 18:16:32 -08:00
|
|
|
Default: false
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2014-02-12 18:16:32 -08:00
|
|
|
Type: Boolean
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|
2014-02-12 18:16:32 -08:00
|
|
|
.P
|
|
|
|
Show extended information\.
|
2014-09-24 14:41:07 -07:00
|
|
|
.SS parseable
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2014-02-12 18:16:32 -08:00
|
|
|
Default: false
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2014-02-12 18:16:32 -08:00
|
|
|
Type: Boolean
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|
2014-02-12 18:16:32 -08:00
|
|
|
.P
|
|
|
|
Show parseable output instead of tree view\.
|
2014-09-24 14:41:07 -07:00
|
|
|
.SS global
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2014-02-12 18:16:32 -08:00
|
|
|
Default: false
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2014-02-12 18:16:32 -08:00
|
|
|
Type: Boolean
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|
2014-02-12 18:16:32 -08:00
|
|
|
.P
|
|
|
|
Check packages in the global install prefix instead of in the current
|
|
|
|
project\.
|
2020-10-02 17:52:19 -04:00
|
|
|
.SS all
|
2014-09-24 14:41:07 -07:00
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2020-10-02 17:52:19 -04:00
|
|
|
Default: false
|
2016-01-28 18:11:35 -08:00
|
|
|
.IP \(bu 2
|
2020-10-02 17:52:19 -04:00
|
|
|
Type: Boolean
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|
2014-02-12 18:16:32 -08:00
|
|
|
.P
|
2020-10-02 17:52:19 -04:00
|
|
|
Display all outdated dependencies on the tree\.
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS See Also
|
2014-09-24 14:41:07 -07:00
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help update
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help dist\-tag
|
2016-01-28 18:11:35 -08:00
|
|
|
.IP \(bu 2
|
2019-11-05 14:55:08 -05:00
|
|
|
npm help registry
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2019-11-05 14:55:08 -05:00
|
|
|
npm help folders
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|