oven-sh/bun · error · bun_install::Error
UnrecognizedDependencyFormat
Error message
UnrecognizedDependencyFormat
What it means
A dependency specifier in package.json uses a format Bun does not recognize (not npm range, git URL, tarball URL, workspace protocol, or local path). It fires while parsing the dependency map when a specifier cannot be classified.
Solutions
- Check the failing dependency entry in package.json for typos or unsupported syntax
- Convert the specifier to a supported form (semver range, `workspace:*`, `file:`, URL, or git shorthand)
- Update Bun — newer versions support more specifier forms
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/install/error.rs:71 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/6e7ef167bc97fea8.
Report an issue: GitHub.
Appendix: source
Thrown at src/install/error.rs:71
#[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")]
SecurityScannerRetryFailed,
#[error("IPCPipeFailed")]
IPCPipeFailed,
#[error("JSONPipeWriterFailed")]
JSONPipeWriterFailed,
#[error("ProcessWatchFailed")]View on GitHub (pinned to 8c5296ac45)