npm-ls | npm Docs
https://docs.npmjs.com/cli/v6/commands/npm-lsNote that nested packages will also show the paths to the specified packages. For example, running npm ls promzard in npm's source tree will show: npm@6.0.0 /path/to/npm └─┬ init-package-json@0.0.4 ... List packages in the global install prefix instead of in the current project. depth. Type: Int; Max display depth of the dependency tree ...
npm-ls
https://docs.npmjs.com › commandsList installed packages. ... This command will print to stdout all the versions of packages that are installed, as well as their dependencies when --all is ...