.TH "NPM\-OUTDATED" "1" "August 2020" "" "" .SH "NAME" \fBnpm-outdated\fR \- Check for outdated packages .SS Synopsis .P .RS 2 .nf npm outdated [[<@scope>/]<pkg> \.\.\.] .fi .RE .SS Description .P This command will check the registry to see if any (or, specific) installed packages are currently outdated\. .P In the output: .RS 0 .IP \(bu 2 \fBwanted\fP is the maximum version of the package that satisfies the semver 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\. .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 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 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'll always 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 is a \fBdependency\fP or a \fBdevDependency\fP\|\. Packages not included in \fBpackage\.json\fP are 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 2 Red means there's a newer version matching your semver requirements, so you should update now\. .IP \(bu 2 Yellow 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 outdated Package Current Wanted Latest Location glob 5\.0\.15 5\.0\.15 6\.0\.1 test\-outdated\-output nothingness 0\.0\.3 git git test\-outdated\-output npm 3\.5\.1 3\.5\.2 3\.5\.1 test\-outdated\-output local\-dev 0\.0\.3 linked linked test\-outdated\-output once 1\.3\.2 1\.3\.3 1\.3\.3 test\-outdated\-output .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 \fBglob\fP requires \fB^5\fP, which prevents npm from installing \fBglob@6\fP, which is outside the semver range\. .IP \(bu 2 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\. .IP \(bu 2 \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\|\. .IP \(bu 2 \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\. .RE .SS Configuration .SS json .RS 0 .IP \(bu 2 Default: false .IP \(bu 2 Type: Boolean .RE .P Show information in JSON format\. .SS long .RS 0 .IP \(bu 2 Default: false .IP \(bu 2 Type: Boolean .RE .P Show extended information\. .SS parseable .RS 0 .IP \(bu 2 Default: false .IP \(bu 2 Type: Boolean .RE .P Show parseable output instead of tree view\. .SS global .RS 0 .IP \(bu 2 Default: false .IP \(bu 2 Type: Boolean .RE .P Check packages in the global install prefix instead of in the current project\. .SS depth .RS 0 .IP \(bu 2 Default: 0 .IP \(bu 2 Type: Int .RE .P Max depth for checking dependency tree\. .SS See Also .RS 0 .IP \(bu 2 npm help update .IP \(bu 2 npm help dist\-tag .IP \(bu 2 npm help registry .IP \(bu 2 npm help folders .RE
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
npm-README.1 | File | 4.77 KB | 0644 |
|
npm-access.1 | File | 2.99 KB | 0644 |
|
npm-adduser.1 | File | 3.12 KB | 0644 |
|
npm-audit.1 | File | 4.39 KB | 0644 |
|
npm-bin.1 | File | 379 B | 0644 |
|
npm-bugs.1 | File | 1.05 KB | 0644 |
|
npm-build.1 | File | 639 B | 0644 |
|
npm-bundle.1 | File | 410 B | 0644 |
|
npm-cache.1 | File | 2.76 KB | 0644 |
|
npm-ci.1 | File | 2 KB | 0644 |
|
npm-completion.1 | File | 960 B | 0644 |
|
npm-config.1 | File | 1.62 KB | 0644 |
|
npm-dedupe.1 | File | 1.46 KB | 0644 |
|
npm-deprecate.1 | File | 952 B | 0644 |
|
npm-dist-tag.1 | File | 3.18 KB | 0644 |
|
npm-docs.1 | File | 1.14 KB | 0644 |
|
npm-doctor.1 | File | 4.84 KB | 0644 |
|
npm-edit.1 | File | 1.07 KB | 0644 |
|
npm-explore.1 | File | 1.11 KB | 0644 |
|
npm-fund.1 | File | 1.68 KB | 0644 |
|
npm-help-search.1 | File | 926 B | 0644 |
|
npm-help.1 | File | 965 B | 0644 |
|
npm-hook.1 | File | 2.05 KB | 0644 |
|
npm-init.1 | File | 2.37 KB | 0644 |
|
npm-install-ci-test.1 | File | 297 B | 0644 |
|
npm-install-test.1 | File | 755 B | 0644 |
|
npm-install.1 | File | 19.63 KB | 0644 |
|
npm-link.1 | File | 2.8 KB | 0644 |
|
npm-logout.1 | File | 1.25 KB | 0644 |
|
npm-ls.1 | File | 2.79 KB | 0644 |
|
npm-org.1 | File | 1.09 KB | 0644 |
|
npm-outdated.1 | File | 4.28 KB | 0644 |
|
npm-owner.1 | File | 1.21 KB | 0644 |
|
npm-pack.1 | File | 986 B | 0644 |
|
npm-ping.1 | File | 509 B | 0644 |
|
npm-prefix.1 | File | 618 B | 0644 |
|
npm-profile.1 | File | 3.49 KB | 0644 |
|
npm-prune.1 | File | 1.43 KB | 0644 |
|
npm-publish.1 | File | 3.14 KB | 0644 |
|
npm-rebuild.1 | File | 465 B | 0644 |
|
npm-repo.1 | File | 773 B | 0644 |
|
npm-restart.1 | File | 957 B | 0644 |
|
npm-root.1 | File | 374 B | 0644 |
|
npm-run-script.1 | File | 3.69 KB | 0644 |
|
npm-search.1 | File | 3.11 KB | 0644 |
|
npm-shrinkwrap.1 | File | 848 B | 0644 |
|
npm-star.1 | File | 544 B | 0644 |
|
npm-stars.1 | File | 539 B | 0644 |
|
npm-start.1 | File | 748 B | 0644 |
|
npm-stop.1 | File | 382 B | 0644 |
|
npm-team.1 | File | 2.26 KB | 0644 |
|
npm-test.1 | File | 399 B | 0644 |
|
npm-token.1 | File | 3.68 KB | 0644 |
|
npm-uninstall.1 | File | 1.63 KB | 0644 |
|
npm-unpublish.1 | File | 1.38 KB | 0644 |
|
npm-update.1 | File | 3.73 KB | 0644 |
|
npm-version.1 | File | 4.84 KB | 0644 |
|
npm-view.1 | File | 3.26 KB | 0644 |
|
npm-whoami.1 | File | 342 B | 0644 |
|
npm.1 | File | 5.53 KB | 0644 |
|
npx.1 | File | 6.7 KB | 0644 |
|