Manage and inspect dependencies
Add, remove, update and explain installed packages.
Change dependencies
fnpm add react@19fnpm add --dev typescriptfnpm remove reactfnpm updatefnpm outdatedInspect the manifest and lock diff after changes. install <package> is accepted as an add form; add makes the intent explicit.
Explain a dependency graph
fnpm why typescriptfnpm lsfnpm info typescriptfnpm-lock why typescriptThe fnpm pm subcommands follow Bun’s: pm pkg, pm version, pm ls, pm why, pm view, pm licenses, pm fetch, pm diff, pm trust / pm untrusted, pm cache and pm audit (with audit fix).
fnpm why explains dependency paths in the project. fnpm-lock why reads the lockfile graph. info queries package information from the configured registry.
Overrides, extensions and patches
fnpm includes overrides/resolutions, package extensions, patch and patch-commit. These affect resolution or installed files and should be reviewed with the lockfile. Use the current command’s help before creating a patch; preserve generated patch files in version control with their manifest reference.
fnpm patch --helpfnpm patch-commit --helpfnpm dedupe --helpfnpm prune --helpCompatibility work for complex peer graphs and migration edge cases continues in the parity inventory. Test the actual consumers of changed packages.