![Forrest logo](/images/logo.png)
npm:packages:tree
Print a tree of locally installed dependencies.
$ npm list
try on your machine
This command is used to list out the installed packages and its dependency tree for the current working directory. When we run this command in the command line, it will display the complete list of all the packages installed in our project, its version number, and its dependencies. This is useful when debugging an issue related to a specific package or when trying to understand the dependencies and versions of packages in our 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.