Passa al contenuto principale
Versione: 8.x

pnpm why

Visualizza tutti i pacchetti che dipendono dal pacchetto specificato.

caution

If the Dependencies Tree has more than 10 results (end leaves), the output will be truncated to 10 end leaves.

This makes the output more readable and avoids memory issues.

Opzioni

--recursive, -r

Show the dependency tree for the specified package on every package in subdirectories or on every workspace package when executed inside a workspace.

--json

Show information in JSON format.

--long

Show verbose output.

--parseable

Show parseable output instead of tree view.

--global, -g

Elenca i pacchetti nella cartella di installazione globale invece che nel progetto corrente.

--prod, -P

Only display the dependency tree for packages in dependencies.

--dev, -D

Only display the dependency tree for packages in devDependencies.

--depth <number>

Display only dependencies within a specific depth.

--only-projects

Visualizza solo le dipendenze che sono anche progetti all'interno dell'area di lavoro.

--filter <selettore_pacchetto>

Ulteriori informazioni sui filtri.