node/deps/npm/man/man1/npm-ls.1

112 lines
2.0 KiB
Groff
Raw Normal View History

.TH "NPM\-LS" "1" "February 2015" "" ""
.SH "NAME"
2014-09-25 05:41:07 +08:00
\fBnpm-ls\fR \- List installed packages
.SH SYNOPSIS
.P
.RS 2
2014-11-05 07:08:12 +08:00
.nf
2014-09-25 05:41:07 +08:00
npm list [[@<scope>/]<pkg> \.\.\.]
npm ls [[@<scope>/]<pkg> \.\.\.]
npm la [[@<scope>/]<pkg> \.\.\.]
npm ll [[@<scope>/]<pkg> \.\.\.]
2014-11-05 07:08:12 +08:00
.fi
2014-09-25 05:41:07 +08:00
.RE
.SH DESCRIPTION
.P
This command will print to stdout all the versions of packages that are
installed, as well as their dependencies, in a tree\-structure\.
.P
2012-09-11 00:11:54 +08:00
Positional arguments are \fBname@version\-range\fR identifiers, which will
limit the results to only the paths to the packages named\. Note that
nested packages will \fIalso\fR show the paths to the specified packages\.
2014-09-25 05:41:07 +08:00
For example, running \fBnpm ls promzard\fR in npm's source tree will show:
.P
.RS 2
2014-11-05 07:08:12 +08:00
.nf
npm@2.5.1 /path/to/npm
2012-09-11 00:11:54 +08:00
└─┬ init\-package\-json@0\.0\.4
└── promzard@0\.1\.5
2014-11-05 07:08:12 +08:00
.fi
2014-09-25 05:41:07 +08:00
.RE
.P
2013-07-10 04:09:02 +08:00
It will print out extraneous, missing, and invalid packages\.
.P
If a project specifies git urls for dependencies these are shown
in parentheses after the name@version to make it easier for users to
recognize potential forks of a project\.
.P
When run as \fBll\fR or \fBla\fR, it shows extended information by default\.
2014-09-25 05:41:07 +08:00
.SH CONFIGURATION
.SS json
.RS 0
.IP \(bu 2
2012-09-11 00:11:54 +08:00
Default: false
2014-09-25 05:41:07 +08:00
.IP \(bu 2
2012-09-11 00:11:54 +08:00
Type: Boolean
2014-09-25 05:41:07 +08:00
.RE
2012-09-11 00:11:54 +08:00
.P
Show information in JSON format\.
2014-09-25 05:41:07 +08:00
.SS long
.RS 0
.IP \(bu 2
Default: false
2014-09-25 05:41:07 +08:00
.IP \(bu 2
Type: Boolean
2014-09-25 05:41:07 +08:00
.RE
.P
Show extended information\.
2014-09-25 05:41:07 +08:00
.SS parseable
.RS 0
.IP \(bu 2
Default: false
2014-09-25 05:41:07 +08:00
.IP \(bu 2
Type: Boolean
2014-09-25 05:41:07 +08:00
.RE
.P
Show parseable output instead of tree view\.
2014-09-25 05:41:07 +08:00
.SS global
.RS 0
.IP \(bu 2
Default: false
2014-09-25 05:41:07 +08:00
.IP \(bu 2
Type: Boolean
2014-09-25 05:41:07 +08:00
.RE
.P
List packages in the global install prefix instead of in the current
project\.
2014-09-25 05:41:07 +08:00
.SS depth
.RS 0
.IP \(bu 2
Type: Int
2014-09-25 05:41:07 +08:00
.RE
.P
Max display depth of the dependency tree\.
2014-09-25 05:41:07 +08:00
.SH SEE ALSO
.RS 0
.IP \(bu 2
npm help config
2014-09-25 05:41:07 +08:00
.IP \(bu 2
2014-09-17 06:38:50 +08:00
npm help 7 config
2014-09-25 05:41:07 +08:00
.IP \(bu 2
2014-09-17 06:38:50 +08:00
npm help 5 npmrc
2014-09-25 05:41:07 +08:00
.IP \(bu 2
2014-09-17 06:38:50 +08:00
npm help 5 folders
2014-09-25 05:41:07 +08:00
.IP \(bu 2
npm help install
2014-09-25 05:41:07 +08:00
.IP \(bu 2
npm help link
2014-09-25 05:41:07 +08:00
.IP \(bu 2
npm help prune
2014-09-25 05:41:07 +08:00
.IP \(bu 2
npm help outdated
2014-09-25 05:41:07 +08:00
.IP \(bu 2
npm help update
2014-09-25 05:41:07 +08:00
.RE