yarn why package
Category: Node.js & npm/yarn
yarn why package
Show why a package is installed — which other package in the tree depends on it
Traces back through the dependency tree to explain why a package ended up in your project — which dependency required it.