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>
11 <h1><a href="../cli/npm-ls.html">npm-ls</a></h1> <p>List installed packages</p>
13 <h2 id="SYNOPSIS">SYNOPSIS</h2>
15 <pre><code>npm list [<pkg> ...]
16 npm ls [<pkg> ...]
17 npm la [<pkg> ...]
18 npm ll [<pkg> ...]</code></pre>
20 <h2 id="DESCRIPTION">DESCRIPTION</h2>
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>
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's source tree will show:</p>
30 <pre><code>npm@1.4.6 /path/to/npm
31 └─┬ init-package-json@0.0.4
32 └── promzard@0.1.5</code></pre>
34 <p>It will print out extraneous, missing, and invalid packages.</p>
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>
40 <p>When run as <code>ll</code> or <code>la</code>, it shows extended information by default.</p>
42 <h2 id="CONFIGURATION">CONFIGURATION</h2>
44 <h3 id="json">json</h3>
46 <ul><li>Default: false</li><li>Type: Boolean</li></ul>
48 <p>Show information in JSON format.</p>
50 <h3 id="long">long</h3>
52 <ul><li>Default: false</li><li>Type: Boolean</li></ul>
54 <p>Show extended information.</p>
56 <h3 id="parseable">parseable</h3>
58 <ul><li>Default: false</li><li>Type: Boolean</li></ul>
60 <p>Show parseable output instead of tree view.</p>
62 <h3 id="global">global</h3>
64 <ul><li>Default: false</li><li>Type: Boolean</li></ul>
66 <p>List packages in the global install prefix instead of in the current
69 <h3 id="depth">depth</h3>
71 <ul><li>Type: Int</li></ul>
73 <p>Max display depth of the dependency tree.</p>
75 <h2 id="SEE-ALSO">SEE ALSO</h2>
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>
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> </td></tr>
82 <tr><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)"> </td><td style="width:40px;height:10px;background:#fff" colspan=4> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4> </td><td style="width:40px;height:10px;background:#fff" colspan=4> </td><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)"> </td><td colspan=6 style="width:60px;height:10px;background:#fff"> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4> </td></tr>
83 <tr><td colspan=2 style="width:20px;height:30px;background:#fff" rowspan=3> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3> </td><td style="width:10px;height:10px;background:#fff" rowspan=3> </td><td style="width:20px;height:10px;background:#fff" rowspan=4 colspan=2> </td><td style="width:10px;height:20px;background:rgb(237,127,127)" rowspan=2> </td><td style="width:10px;height:10px;background:#fff" rowspan=3> </td><td style="width:20px;height:10px;background:#fff" rowspan=3 colspan=2> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3> </td><td style="width:10px;height:10px;background:#fff" rowspan=3> </td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3> </td></tr>
84 <tr><td style="width:10px;height:10px;background:#fff" rowspan=2> </td></tr>
85 <tr><td style="width:10px;height:10px;background:#fff"> </td></tr>
86 <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6> </td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)"> </td></tr>
87 <tr><td colspan=5 style="width:50px;height:10px;background:#fff"> </td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4> </td><td style="width:90px;height:10px;background:#fff" colspan=9> </td></tr>
89 <p id="footer">npm-ls — npm@1.4.6</p>