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

NoMatchingVersion

Error message

NoMatchingVersion

What it means

Sentinel variant of the install Error enum: version resolution found no version of the package satisfying the requested range/tag (including dist-tag misses handled by DistTagNotFound). The dependency cannot be installed as specified; consumers map it to the familiar 'no matching version' message.

Solutions

  1. Inspect available versions with `npm view <pkg> versions` and widen the range in package.json
  2. If the version exists only under a prerelease tag, explicitly include prereleases (e.g. `^1.0.0-beta.1`)
  3. Check for typos in the version specifier and confirm the package name is correct
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/install/error.rs:59 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/082db458356e3f64. Report an issue: GitHub.

Appendix: source

Thrown at src/install/error.rs:59

    #[error("HTTPInternalServerError")]
    HTTPInternalServerError,
    #[error("UnexpectedNotModified")]
    UnexpectedNotModified,
    #[error("PackageFailedToParse")]
    PackageFailedToParse,
    #[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")]

View on GitHub (pinned to 8c5296ac45)