← 返回命令列表

Linux command

bun-why 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show why a package is installed

bun why [package]

说明

bun why shows why a specific package is installed in your project. It displays the dependency chain that leads to the package, showing which packages depend on it directly or transitively. This is useful for understanding why a package appears in your node_modules, especially for transitive dependencies.

FAQ

What is the bun-why command used for?

bun why shows why a specific package is installed in your project. It displays the dependency chain that leads to the package, showing which packages depend on it directly or transitively. This is useful for understanding why a package appears in your node_modules, especially for transitive dependencies.

How do I run a basic bun-why example?

Run `bun why [package]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.