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

InstallFailed

Error message

InstallFailed

What it means

Generic sentinel for an install operation that failed after resolution — the underlying cause (network, extraction, lifecycle script) is reported separately in the error output. It fires as a summary error when the install pipeline aborts.

Solutions

  1. Re-run `bun install` with `--verbose` to see the underlying cause
  2. Check network access and registry availability if packages failed to download
  3. Clear the install cache (~/.bun/install/cache) and retry
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at src/install/error.rs:65 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/43f89df99383765c. Report an issue: GitHub.

Appendix: source

Thrown at src/install/error.rs:65

    #[error("BufferTooSmall")]
    BufferTooSmall,
    #[error("DanglingSymlink")]
    DanglingSymlink,
    #[error("UnsupportedYarnLockfileVersion")]
    UnsupportedYarnLockfileVersion,
    #[error("InvalidPackageJSON")]
    InvalidPackageJSON,
    #[error("LockfileResolveFailed")]
    LockfileResolveFailed,
    #[error("DistTagNotFound")]
    DistTagNotFound,
    #[error("NoMatchingVersion")]
    NoMatchingVersion,
    #[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")]

View on GitHub (pinned to 8c5296ac45)