2024-11-14 15:43:37 +01: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-04-22 06:20:48 +03:00
|
|
|
`npm ls {{[-a|--all]}}`
|
2024-11-14 15:43:37 +01:00
|
|
|
|
|
|
|
- Print dependencies with extended information:
|
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`npm ls {{[-l|--long]}}`
|
2024-11-14 15:43:37 +01:00
|
|
|
|
|
|
|
- Print dependencies in parseable format:
|
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`npm ls {{[-p|--parseable]}}`
|
2024-11-14 15:43:37 +01:00
|
|
|
|
|
|
|
- Print dependencies in JSON format:
|
|
|
|
|
|
|
|
`npm ls --json`
|