commands.sh

npm ls

all

Print installed packages to `stdout`.

More info →

Options (5)

boolean

Print all versions of direct dependencies in the current project to `stdout`

Example: npm {{[ls|list]}}
-a, --allboolean

Print all installed packages including peer dependencies

Example: npm {{[ls|list]}} {{[-a|--all]}}
-g, --globalboolean

Print all globally installed packages

Example: npm {{[ls|list]}} {{[-g|--global]}}
-l, --longboolean

Print dependencies with extended information

Example: npm {{[ls|list]}} {{[-l|--long]}}
-p, --parseableboolean

Print dependencies in parseable format

Example: npm {{[ls|list]}} {{[-p|--parseable]}}

Examples (6)

Print all versions of direct dependencies in the current project to `stdout`

npm [ls|list]

Print all installed packages including peer dependencies

npm [ls|list] [-a|--all]

Print all globally installed packages

npm [ls|list] [-g|--global]

Print dependencies with extended information

npm [ls|list] [-l|--long]

Print dependencies in parseable format

npm [ls|list] [-p|--parseable]

Print dependencies in JSON format

npm [ls|list] --json
made by @shridhargupta | data from tldr-pages