npm-ls | npm Docs
https://docs.npmjs.com/cli/v8/commands/npm-lsList installed packages. Description. This command will print to stdout all the versions of packages that are installed, as well as their dependencies when --all is specified, in a tree structure.. Note: to get a "bottoms up" view of why a given package is included in the tree at all, use npm explain.. Positional arguments are name@version-range identifiers, which will limit the …