snippetbashTip
npm ls — Print installed packages to `stdout`. More information: <https://docs.npmjs.com/cli/npm-ls/>.
Viewed 0 times
commandstdoutcliprintmorenpm lsinstalledpackages
Problem
How to use the
npm ls command: Print installed packages to stdout. More information: <https://docs.npmjs.com/cli/npm-ls/>.Solution
npm ls — Print installed packages to stdout. More information: <https://docs.npmjs.com/cli/npm-ls/>.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]}} --jsonCode Snippets
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]}}Context
tldr-pages: common/npm ls
Revisions (0)
No revisions yet.