| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 | .TH "NPM\-OUTDATED" "1" "August 2021" "" "".SH "NAME"\fBnpm-outdated\fR \- Check for outdated packages.SS Synopsis.P.RS 2.nfnpm outdated [[<@scope>/]<pkg> \.\.\.].fi.RE.SS Description.PThis command will check the registry to see if any (or, specific) installedpackages are currently outdated\..PIn the output:.RS 0.IP \(bu 2\fBwanted\fP is the maximum version of the package that satisfies the semverrange 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\..IP \(bu 2\fBlatest\fP is the version of the package tagged as latest in the registry\.Running \fBnpm publish\fP with no special configuration will publish the packagewith a dist\-tag of \fBlatest\fP\|\. This may or may not be the maximum version ofthe package, or the most\-recently published version of the package, dependingon how the package's developer manages the latest dist\-tag \fInpm\-dist\-tag\fR\|\..IP \(bu 2\fBlocation\fP is where in the dependency tree the package is located\. Note that\fBnpm outdated\fP defaults to a depth of 0, so unless you override that, you'llalways be seeing only top\-level dependencies that are outdated\..IP \(bu 2\fBpackage type\fP (when using \fB\-\-long\fP / \fB\-l\fP) tells you whether this package isa \fBdependency\fP or a \fBdevDependency\fP\|\. Packages not included in \fBpackage\.json\fPare always marked \fBdependencies\fP\|\..IP \(bu 2\fBhomepage\fP (when using \fB\-\-long\fP / \fB\-l\fP) is the \fBhomepage\fP value contained in the package's \fBpackage\.json\fP.IP \(bu 2Red means there's a newer version matching your semver requirements, so you should update now\..IP \(bu 2Yellow indicates that there's a newer version above your semver requirements (usually new major, or new 0\.x minor) so proceed with caution\..RE.SS An example.P.RS 2.nf$ npm outdatedPackage      Current   Wanted   Latest  Locationglob          5\.0\.15   5\.0\.15    6\.0\.1  test\-outdated\-outputnothingness    0\.0\.3      git      git  test\-outdated\-outputnpm            3\.5\.1    3\.5\.2    3\.5\.1  test\-outdated\-outputlocal\-dev      0\.0\.3   linked   linked  test\-outdated\-outputonce           1\.3\.2    1\.3\.3    1\.3\.3  test\-outdated\-output.fi.RE.PWith 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.PA few things to note:.RS 0.IP \(bu 2\fBglob\fP requires \fB^5\fP, which prevents npm from installing \fBglob@6\fP, which isoutside the semver range\..IP \(bu 2Git dependencies will always be reinstalled, because of how they're specified\.The installed committish might satisfy the dependency specifier (if it'ssomething 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 areinstall of a Git dependency always forces a new clone and install\..IP \(bu 2\fBnpm@3\.5\.2\fP is marked as "wanted", but "latest" is \fBnpm@3\.5\.1\fP because npmuses dist\-tags to manage its \fBlatest\fP and \fBnext\fP release channels\. \fBnpm update\fPwill install the \fInewest\fR version, but \fBnpm install npm\fP (with no semver range)will install whatever's tagged as \fBlatest\fP\|\..IP \(bu 2\fBonce\fP is just plain out of date\. Reinstalling \fBnode_modules\fP from scratch orrunning \fBnpm update\fP will bring it up to spec\..RE.SS Configuration.SS json.RS 0.IP \(bu 2Default: false.IP \(bu 2Type: Boolean.RE.PShow information in JSON format\..SS long.RS 0.IP \(bu 2Default: false.IP \(bu 2Type: Boolean.RE.PShow extended information\..SS parseable.RS 0.IP \(bu 2Default: false.IP \(bu 2Type: Boolean.RE.PShow parseable output instead of tree view\..SS global.RS 0.IP \(bu 2Default: false.IP \(bu 2Type: Boolean.RE.PCheck packages in the global install prefix instead of in the currentproject\..SS depth.RS 0.IP \(bu 2Default: 0.IP \(bu 2Type: Int.RE.PMax depth for checking dependency tree\..SS See Also.RS 0.IP \(bu 2npm help update.IP \(bu 2npm help dist\-tag.IP \(bu 2npm help registry.IP \(bu 2npm help folders.RE
 |