oven-sh/bun · error · bun_install::Error
DanglingSymlink
Error message
DanglingSymlink
What it means
Sentinel variant of the install Error enum: a symlink in an installed package or cache points at a target that does not exist. Detected while linking package files into node_modules; the variant classifies the broken-link condition for user-facing reporting.
Solutions
- Report the broken package to its maintainer — the published tarball has invalid symlinks
- Clear the cache and reinstall to rule out extraction corruption
- Manually fix or remove the dangling symlink if the target is non-critical
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/install/error.rs:49 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/fc4c196a2876b309.
Report an issue: GitHub.
Appendix: source
Thrown at src/install/error.rs:49
#[error("TarballHTTP5xx")]
TarballHTTP5xx,
#[error("TarballFailedToExtract")]
TarballFailedToExtract,
#[error("TarballFailedToDownload")]
TarballFailedToDownload,
#[error("BadRequest")]
BadRequest,
#[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")]View on GitHub (pinned to 8c5296ac45)