@@ -27,7 +27,7 @@ packages will *also* show the paths to the specified packages. For
27
27
example, running ` npm ls promzard ` in npm's source tree will show:
28
28
29
29
``` bash
30
- npm@10.9.2 /path/to/npm
30
+ npm@11.0.0 /path/to/npm
31
31
└─┬ init-package-json@0.0.4
32
32
└── promzard@0.1.5
33
33
```
@@ -43,34 +43,6 @@ dependencies, not the physical layout of your `node_modules` folder.
43
43
44
44
When run as ` ll ` or ` la ` , it shows extended information by default.
45
45
46
- ### Note: Design Changes Pending
47
-
48
- The ` npm ls ` command's output and behavior made a _ ton_ of sense when npm
49
- created a ` node_modules ` folder that naively nested every dependency. In
50
- such a case, the logical dependency graph and physical tree of packages on
51
- disk would be roughly identical.
52
-
53
- With the advent of automatic install-time deduplication of dependencies in
54
- npm v3, the ` ls ` output was modified to display the logical dependency
55
- graph as a tree structure, since this was more useful to most users.
56
- However, without using ` npm ls -l ` , it became impossible to show _ where_ a
57
- package was actually installed much of the time!
58
-
59
- With the advent of automatic installation of ` peerDependencies ` in npm v7,
60
- this gets even more curious, as ` peerDependencies ` are logically
61
- "underneath" their dependents in the dependency graph, but are always
62
- physically at or above their location on disk.
63
-
64
- Also, in the years since npm got an ` ls ` command (in version 0.0.2!),
65
- dependency graphs have gotten much larger as a general rule. Therefore, in
66
- order to avoid dumping an excessive amount of content to the terminal, `npm
67
- ls` now only shows the _top_ level dependencies, unless ` --all` is
68
- provided.
69
-
70
- A thorough re-examination of the use cases, intention, behavior, and output
71
- of this command, is currently underway. Expect significant changes to at
72
- least the default human-readable ` npm ls ` output in npm v8.
73
-
74
46
### Configuration
75
47
76
48
#### ` all `
0 commit comments