2025-03-14 21:59:59 -06:00
|
|
|
# npm ls
|
|
|
|
|
|
|
|
|
|
> Print installed packages to `stdout`.
|
|
|
|
|
> More information: <https://docs.npmjs.com/cli/commands/npm-ls>.
|
|
|
|
|
|
|
|
|
|
- Print all versions of direct dependencies to `stdout`:
|
|
|
|
|
|
|
|
|
|
`npm ls`
|
|
|
|
|
|
|
|
|
|
- Print all installed packages including peer dependencies:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`npm ls {{[-a|--all]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Print dependencies with extended information:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`npm ls {{[-l|--long]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Print dependencies in parseable format:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`npm ls {{[-p|--parseable]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Print dependencies in JSON format:
|
|
|
|
|
|
|
|
|
|
`npm ls --json`
|