oven-sh/bun · error · bun_install::Error
BufferTooSmall
Error message
BufferTooSmall
What it means
Sentinel variant of the install Error enum: an in-memory buffer was too small for the data being written into it (lockfile serialization, tarball handling, or pipe writes). Internal capacity guard; callers are expected to grow the buffer or propagate the failure.
Solutions
- Report as a GitHub issue — this is likely an internal Bun bug with insufficient buffer sizing
- Check for pathologically long paths or package names in the project
- Try with fewer nested dependencies to isolate the trigger
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/install/error.rs:47 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/c0b02feb8d6d7573.
Report an issue: GitHub.
Appendix: source
Thrown at src/install/error.rs:47
#[error("TarballHTTP4xx")]
TarballHTTP4xx,
#[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")]View on GitHub (pinned to 8c5296ac45)