Merge remote-tracking branch 'origin/v0.10'
[platform/upstream/nodejs.git] / deps / npm / html / doc / cli / npm-ls.html
1 <!doctype html>
2 <html>
3   <title>npm-ls</title>
4   <meta http-equiv="content-type" value="text/html;utf-8">
5   <link rel="stylesheet" type="text/css" href="../../static/style.css">
6   <script async=true src="../../static/toc.js"></script>
7
8   <body>
9     <div id="wrapper">
10
11 <h1><a href="../cli/npm-ls.html">npm-ls</a></h1> <p>List installed packages</p>
12
13 <h2 id="SYNOPSIS">SYNOPSIS</h2>
14
15 <pre><code>npm list [&lt;pkg&gt; ...]
16 npm ls [&lt;pkg&gt; ...]
17 npm la [&lt;pkg&gt; ...]
18 npm ll [&lt;pkg&gt; ...]</code></pre>
19
20 <h2 id="DESCRIPTION">DESCRIPTION</h2>
21
22 <p>This command will print to stdout all the versions of packages that are
23 installed, as well as their dependencies, in a tree-structure.</p>
24
25 <p>Positional arguments are <code>name@version-range</code> identifiers, which will
26 limit the results to only the paths to the packages named.  Note that
27 nested packages will <em>also</em> show the paths to the specified packages.
28 For example, running <code>npm ls promzard</code> in npm&#39;s source tree will show:</p>
29
30 <pre><code>npm@1.4.6 /path/to/npm
31 └─┬ init-package-json@0.0.4
32   └── promzard@0.1.5</code></pre>
33
34 <p>It will print out extraneous, missing, and invalid packages.</p>
35
36 <p>If a project specifies git urls for dependencies these are shown
37 in parentheses after the name@version to make it easier for users to
38 recognize potential forks of a project.</p>
39
40 <p>When run as <code>ll</code> or <code>la</code>, it shows extended information by default.</p>
41
42 <h2 id="CONFIGURATION">CONFIGURATION</h2>
43
44 <h3 id="json">json</h3>
45
46 <ul><li>Default: false</li><li>Type: Boolean</li></ul>
47
48 <p>Show information in JSON format.</p>
49
50 <h3 id="long">long</h3>
51
52 <ul><li>Default: false</li><li>Type: Boolean</li></ul>
53
54 <p>Show extended information.</p>
55
56 <h3 id="parseable">parseable</h3>
57
58 <ul><li>Default: false</li><li>Type: Boolean</li></ul>
59
60 <p>Show parseable output instead of tree view.</p>
61
62 <h3 id="global">global</h3>
63
64 <ul><li>Default: false</li><li>Type: Boolean</li></ul>
65
66 <p>List packages in the global install prefix instead of in the current
67 project.</p>
68
69 <h3 id="depth">depth</h3>
70
71 <ul><li>Type: Int</li></ul>
72
73 <p>Max display depth of the dependency tree.</p>
74
75 <h2 id="SEE-ALSO">SEE ALSO</h2>
76
77 <ul><li><a href="../cli/npm-config.html">npm-config(1)</a></li><li><a href="../misc/npm-config.html">npm-config(7)</a></li><li><a href="../files/npmrc.html">npmrc(5)</a></li><li><a href="../files/npm-folders.html">npm-folders(5)</a></li><li><a href="../cli/npm-install.html">npm-install(1)</a></li><li><a href="../cli/npm-link.html">npm-link(1)</a></li><li><a href="../cli/npm-prune.html">npm-prune(1)</a></li><li><a href="../cli/npm-outdated.html">npm-outdated(1)</a></li><li><a href="../cli/npm-update.html">npm-update(1)</a></li></ul>
78 </div>
79
80 <table border=0 cellspacing=0 cellpadding=0 id=npmlogo>
81 <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr>
82 <tr><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td colspan=6 style="width:60px;height:10px;background:#fff">&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td></tr>
83 <tr><td colspan=2 style="width:20px;height:30px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=4 colspan=2>&nbsp;</td><td style="width:10px;height:20px;background:rgb(237,127,127)" rowspan=2>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=3 colspan=2>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td></tr>
84 <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr>
85 <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr>
86 <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
87 <tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
88 </table>
89 <p id="footer">npm-ls &mdash; npm@1.4.6</p>
90