Link Search Menu Expand Document

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 --all

  • Print dependencies with extended information:

npm ls --long

  • Print dependencies in parseable format:

npm ls --parseable

  • Print dependencies in JSON format:

npm ls --json