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
- Print all installed packages including peer dependencies:
npm
- Print all globally installed packages:
npm
- Print dependencies with extended information:
npm
- Print dependencies in parseable format:
npm
- Print dependencies in JSON format:
npm --json
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
