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

RepositoryNotFound

Error message

RepositoryNotFound

What it means

A git repository referenced as a dependency could not be found (clone failed: nonexistent repo, no access, or bad URL). It fires during resolution of git dependencies when the remote cannot be fetched.

Solutions

  1. Check the repository URL in package.json for typos
  2. Ensure the repo exists and you have access (private repos need credentials/SSH keys)
  3. Confirm network access to the git host (github.com, etc.)
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at src/install/error.rs:153 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/791943db0f1ad025. Report an issue: GitHub.

Appendix: source

Thrown at src/install/error.rs:153

    #[error("InvalidDescriptionField")]
    InvalidDescriptionField,
    #[error("InvalidUrlField")]
    InvalidUrlField,
    #[error("MissingLevelField")]
    MissingLevelField,
    #[error("InvalidLevelField")]
    InvalidLevelField,
    #[error("InvalidLevelValue")]
    InvalidLevelValue,
    #[error("Missing global bin directory: try setting $BUN_INSTALL")]
    MissingGlobalBinDirectoryTrySettingBUNINSTALL,
    #[error("InvalidURL")]
    InvalidURL,
    #[error("Fail")]
    Fail,
    #[error("IntegrityCheckFailed")]
    IntegrityCheckFailed,
    #[error("RepositoryNotFound")]
    RepositoryNotFound,
    #[error("DebugTextLockfileRoundTrip")]
    DebugTextLockfileRoundTrip,
    #[error("NoPackage")]
    NoPackage,
    #[error("BrokenPipe")]
    BrokenPipe,
    #[error("WriteFailed")]
    WriteFailed,
    #[error("InvalidCharacter")]
    InvalidCharacter,
    #[error("InvalidLockfile")]
    InvalidLockfile,
    #[error("Unexpected lockfile version")]
    UnexpectedLockfileVersion,
    #[error("Outdated lockfile version")]
    OutdatedLockfileVersion,
    #[error("Lockfile is missing data")]

View on GitHub (pinned to 8c5296ac45)