pnpm list not displaying transitive dependencies #3888
-
I am learning about pnpm, and I'm having trouble understanding the behavior of pnpm list (ls). In the pnpm docs (https://pnpm.io/cli/list), it seems to clearly indicate that the output of the command details the direct dependencies of the project, as well as the dependencies of those dependencies (transitives), and so on. However, when I run the command on a project only direct dependencies-as declared in the package.json-are listed. Example: Project source: https://github.com/truenas/documentation I clone the repo, cd into project root, run pnpm install. I then run pnpm list and get the following output: devDependencies: The output reflects the direct dependencies as declared in the project's package.json. Looking in the pnpm-lock.yaml file, though, one can see that there are dozens of other packages installed as dependencies for the declared dependencies. I would expect those transitive dependencies to also be listed in the output of pnpm list. Does anybody have insight on this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Run |
Beta Was this translation helpful? Give feedback.
Run
pnpm ls --depth=Infinity