npm-ls
lists installed packages
TLDR
List installed packages
$ npm ls
List all depths$ npm ls --all
List specific package$ npm ls [package-name]
List global packages$ npm ls -g
JSON output$ npm ls --json
Production only$ npm ls --production
Show depth$ npm ls --depth=[2]
SYNOPSIS
npm ls [package] [options]
DESCRIPTION
npm ls lists installed packages. Shows dependency tree.
The command displays package hierarchy. Identifies dependency versions.
PARAMETERS
PACKAGE
Package to find.--all
Show all dependencies.-g
Global packages.--json
JSON output.--depth N
Tree depth.--help
Display help information.
CAVEATS
Alias: npm list. Tree can be large. Use depth to limit.
HISTORY
npm ls provides dependency visualization for understanding package relationships.
SEE ALSO
npm(1), npm-explain(1), npm-outdated(1)
