1NPM-LS(1) NPM-LS(1)
2
3
4
6 npm-ls - List installed packages
7
9 npm ls [[<@scope>/]<pkg> ...]
10
11 aliases: list, la, ll
12
14 This command will print to stdout all the versions of packages that are
15 installed, as well as their dependencies, in a tree-structure.
16
17 Positional arguments are name@version-range identifiers, which will
18 limit the results to only the paths to the packages named. Note that
19 nested packages will also show the paths to the specified packages.
20 For example, running npm ls promzard in npm's source tree will show:
21
22 npm@6.12.1 /path/to/npm
23 └─┬ init-package-json@0.0.4
24 └── promzard@0.1.5
25
26 It will print out extraneous, missing, and invalid packages.
27
28 If a project specifies git urls for dependencies these are shown in
29 parentheses after the name@version to make it easier for users to rec‐
30 ognize potential forks of a project.
31
32 The tree shown is the logical dependency tree, based on package depen‐
33 dencies, not the physical layout of your node_modules folder.
34
35 When run as ll or la, it shows extended information by default.
36
38 json
39 · Default: false
40
41 · Type: Boolean
42
43
44 Show information in JSON format.
45
46 long
47 · Default: false
48
49 · Type: Boolean
50
51
52 Show extended information.
53
54 parseable
55 · Default: false
56
57 · Type: Boolean
58
59
60 Show parseable output instead of tree view.
61
62 global
63 · Default: false
64
65 · Type: Boolean
66
67
68 List packages in the global install prefix instead of in the current
69 project.
70
71 depth
72 · Type: Int
73
74
75 Max display depth of the dependency tree.
76
77 prod / production
78 · Type: Boolean
79
80 · Default: false
81
82
83 Display only the dependency tree for packages in dependencies.
84
85 dev / development
86 · Type: Boolean
87
88 · Default: false
89
90
91 Display only the dependency tree for packages in devDependencies.
92
93 only
94 · Type: String
95
96
97 When "dev" or "development", is an alias to dev.
98
99 When "prod" or "production", is an alias to production.
100
101 link
102 · Type: Boolean
103
104 · Default: false
105
106
107 Display only dependencies which are linked
108
110 · npm help config
111
112 · npm help 7 config
113
114 · npm help 5 npmrc
115
116 · npm help 5 folders
117
118 · npm help install
119
120 · npm help link
121
122 · npm help prune
123
124 · npm help outdated
125
126 · npm help update
127
128
129
130
131
132 October 2019 NPM-LS(1)