1 npm-ls(1) -- List installed packages
2 ======================================
6 npm list [[@<scope>/]<pkg> ...]
7 npm ls [[@<scope>/]<pkg> ...]
8 npm la [[@<scope>/]<pkg> ...]
9 npm ll [[@<scope>/]<pkg> ...]
13 This command will print to stdout all the versions of packages that are
14 installed, as well as their dependencies, in a tree-structure.
16 Positional arguments are `name@version-range` identifiers, which will
17 limit the results to only the paths to the packages named. Note that
18 nested packages will *also* show the paths to the specified packages.
19 For example, running `npm ls promzard` in npm's source tree will show:
21 npm@@VERSION@ /path/to/npm
22 └─┬ init-package-json@0.0.4
25 It will print out extraneous, missing, and invalid packages.
27 If a project specifies git urls for dependencies these are shown
28 in parentheses after the name@version to make it easier for users to
29 recognize potential forks of a project.
31 When run as `ll` or `la`, it shows extended information by default.
40 Show information in JSON format.
47 Show extended information.
54 Show parseable output instead of tree view.
61 List packages in the global install prefix instead of in the current
68 Max display depth of the dependency tree.
75 Display only the dependency tree for packages in `dependencies`.
82 Display only the dependency tree for packages in `devDependencies`.