oven-sh/bun · error · bun_install::Error

NoPackagesInstalled

Error message

NoPackagesInstalled

What it means

Install finished but no packages were installed — the resolved package set is empty. Typically fires when adding a dependency whose name resolves to nothing, or installing in a project with no dependencies.

Solutions

  1. Verify the package name spelled in the add command exists on the registry
  2. Check package.json dependencies are non-empty before running `bun install`
  3. If intentional (empty project), this error can be safely ignored
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/install/error.rs:79 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16). Data as JSON: /api/errors/4ddb6881f1991132. Report an issue: GitHub.

Appendix: source

Thrown at src/install/error.rs:79

    #[error("TooRecentVersion")]
    TooRecentVersion,
    #[error("MissingPackageJSON")]
    MissingPackageJSON,
    #[error("InstallFailed")]
    InstallFailed,
    #[error("HTTPError")]
    HTTPError,
    #[error("Failed")]
    Failed,
    #[error("UnrecognizedDependencyFormat")]
    UnrecognizedDependencyFormat,
    #[error("No global directory found")]
    NoGlobalDirectoryFound,
    #[error("InvalidPackageID")]
    InvalidPackageID,
    #[error("PartialInstallFailed")]
    PartialInstallFailed,
    #[error("NoPackagesInstalled")]
    NoPackagesInstalled,
    #[error("SecurityScannerInWorkspace")]
    SecurityScannerInWorkspace,
    #[error("SecurityScannerRetryFailed")]
    SecurityScannerRetryFailed,
    #[error("IPCPipeFailed")]
    IPCPipeFailed,
    #[error("JSONPipeWriterFailed")]
    JSONPipeWriterFailed,
    #[error("ProcessWatchFailed")]
    ProcessWatchFailed,
    #[error("SecurityScannerProcessFailedWithoutExitStatus")]
    SecurityScannerProcessFailedWithoutExitStatus,
    #[error("NoSecurityScanData")]
    NoSecurityScanData,
    #[error("InvalidIPCMessage")]
    InvalidIPCMessage,
    #[error("InvalidIPCFormat")]

View on GitHub (pinned to 8c5296ac45)