1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-08 11:55:24 +02:00
tldr/pages/common/npm-ls.md

25 lines
474 B
Markdown
Raw Normal View History

# 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:
`npm ls {{[-a|--all]}}`
- Print dependencies with extended information:
`npm ls {{[-l|--long]}}`
- Print dependencies in parseable format:
`npm ls {{[-p|--parseable]}}`
- Print dependencies in JSON format:
`npm ls --json`