![Forrest logo](/images/logo.png)
pnpm:tldr:95a6d
pnpm: Print a tree of locally installed modules.
$ pnpm list
try on your machine
The "pnpm list" command is used to display a list of all the installed packages in a pnpm-managed project.
When you run "pnpm list" in the root directory of your project, it will recursively display the dependency tree of all the installed packages. By default, it shows all the packages including their names, versions, and dependency relationships.
The display may include three types of information about each package:
- The main line contains the package name and version.
- Indentations represent the nested dependencies of a package.
- Packages with a "dev" tag or appearing under "devDependencies" are typically development dependencies rather than production dependencies. This helps differentiate between dependencies used for development purposes and those needed for the actual running of the project.
The "pnpm list" command is useful to get an overview of the installed packages and their dependencies, providing you with a clear structure of how the packages are interconnected in your project.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.