npm explain
all
Explain how a package is installed, detailing its dependencies and reasons for inclusion.
More info →Options (1)
booleanExplain why a specific package is installed
Example:
npm {{[why|explain]}} {{package_name}}Examples (4)
Explain why a specific package is installed
npm [why|explain] package_nameShow explanation in JSON format
npm [why|explain] package_name --jsonInclude peer dependencies in the explanation
npm [why|explain] package_name --include peerLimit explanation depth to 2 levels deep
npm [why|explain] package_name --depth 2made by @shridhargupta | data from tldr-pages