Search code examples
pnpm

Is there an equivalent of 'yarn why' for pnpm?


There is a particular sub-dependency of my project that is failing to install properly in pnpm. I'm not sure why the dependency (es5-ext) is required.

When using yarn, I can ask "yarn why [package-name]" to find out why a package is needed.

Is there an equivalent in pnpm?


Solution

  • pnpm why es5-ext will work with pnpm. See the docs: https://pnpm.io/cli/why