List installed packages

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.

npm ls <package-spec>

alias: list