2015-02-06 01:14:25 -08:00
|
|
|
.TH "NPM\-LS" "1" "February 2015" "" ""
|
2011-11-26 09:21:03 -08:00
|
|
|
.SH "NAME"
|
2014-09-24 14:41:07 -07:00
|
|
|
\fBnpm-ls\fR \- List installed packages
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.P
|
|
|
|
.RS 2
|
2014-11-04 15:08:12 -08:00
|
|
|
.nf
|
2014-09-24 14:41:07 -07:00
|
|
|
npm list [[@<scope>/]<pkg> \.\.\.]
|
|
|
|
npm ls [[@<scope>/]<pkg> \.\.\.]
|
|
|
|
npm la [[@<scope>/]<pkg> \.\.\.]
|
|
|
|
npm ll [[@<scope>/]<pkg> \.\.\.]
|
2014-11-04 15:08:12 -08:00
|
|
|
.fi
|
2014-09-24 14:41:07 -07:00
|
|
|
.RE
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.P
|
2011-11-26 09:21:03 -08:00
|
|
|
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-10 09:11:54 -07: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-24 14:41:07 -07:00
|
|
|
For example, running \fBnpm ls promzard\fR in npm's source tree will show:
|
|
|
|
.P
|
|
|
|
.RS 2
|
2014-11-04 15:08:12 -08:00
|
|
|
.nf
|
2015-02-27 05:39:59 -08:00
|
|
|
npm@2.6.1 /path/to/npm
|
2012-09-10 09:11:54 -07:00
|
|
|
└─┬ init\-package\-json@0\.0\.4
|
|
|
|
└── promzard@0\.1\.5
|
2014-11-04 15:08:12 -08:00
|
|
|
.fi
|
2014-09-24 14:41:07 -07:00
|
|
|
.RE
|
2011-11-26 09:21:03 -08:00
|
|
|
.P
|
2013-07-09 13:09:02 -07: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\.
|
2011-11-26 09:21:03 -08:00
|
|
|
.P
|
|
|
|
When run as \fBll\fR or \fBla\fR, it shows extended information by default\.
|
2014-09-24 14:41:07 -07:00
|
|
|
.SH CONFIGURATION
|
|
|
|
.SS json
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2012-09-10 09:11:54 -07:00
|
|
|
Default: false
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2012-09-10 09:11:54 -07:00
|
|
|
Type: Boolean
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|
2012-09-10 09:11:54 -07:00
|
|
|
.P
|
|
|
|
Show information in JSON format\.
|
2014-09-24 14:41:07 -07:00
|
|
|
.SS long
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2011-11-26 09:21:03 -08:00
|
|
|
Default: false
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2011-11-26 09:21:03 -08:00
|
|
|
Type: Boolean
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|
2011-11-26 09:21:03 -08:00
|
|
|
.P
|
|
|
|
Show extended information\.
|
2014-09-24 14:41:07 -07:00
|
|
|
.SS parseable
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2011-11-26 09:21:03 -08:00
|
|
|
Default: false
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2011-11-26 09:21:03 -08:00
|
|
|
Type: Boolean
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|
2011-11-26 09:21:03 -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
|
2011-11-26 09:21:03 -08:00
|
|
|
Default: false
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2011-11-26 09:21:03 -08:00
|
|
|
Type: Boolean
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|
2011-11-26 09:21:03 -08:00
|
|
|
.P
|
|
|
|
List packages in the global install prefix instead of in the current
|
|
|
|
project\.
|
2014-09-24 14:41:07 -07:00
|
|
|
.SS depth
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2014-02-12 18:16:32 -08:00
|
|
|
Type: Int
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|
2014-02-12 18:16:32 -08:00
|
|
|
.P
|
|
|
|
Max display depth of the dependency tree\.
|
2014-09-24 14:41:07 -07:00
|
|
|
.SH SEE ALSO
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2011-11-26 09:21:03 -08:00
|
|
|
npm help config
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2014-09-16 15:38:50 -07:00
|
|
|
npm help 7 config
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2014-09-16 15:38:50 -07:00
|
|
|
npm help 5 npmrc
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2014-09-16 15:38:50 -07:00
|
|
|
npm help 5 folders
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2011-11-26 09:21:03 -08:00
|
|
|
npm help install
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2011-11-26 09:21:03 -08:00
|
|
|
npm help link
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2011-11-26 09:21:03 -08:00
|
|
|
npm help prune
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2011-11-26 09:21:03 -08:00
|
|
|
npm help outdated
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2011-11-26 09:21:03 -08:00
|
|
|
npm help update
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|
2011-11-26 09:21:03 -08:00
|
|
|
|