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

DistTagNotFound

Error message

DistTagNotFound

What it means

The requested dist-tag (e.g. `latest`, `next`, or a custom tag) does not exist for the package on the registry. It fires during version resolution when the tag name used in a dependency specifier is not present in the package's `dist-tags` object.

Solutions

  1. Check available tags with `npm view <pkg> dist-tags` and use an existing one
  2. Pin the dependency to an exact version or semver range instead of the missing tag
  3. If you own the package, publish a release that creates the tag (e.g. `npm publish --tag <name>`)
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/install/error.rs:57 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/6b65de54f4e40d74. Report an issue: GitHub.

Appendix: source

Thrown at src/install/error.rs:57

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

View on GitHub (pinned to 8c5296ac45)