oven-sh/bun · error · Error
MissingPackageName
Error message
MissingPackageName
What it means
Sentinel variant of the install Error enum: while parsing or validating the lockfile, a package record lacks the required package name field. Part of the lockfile structural-validation family; the variant classifies which required field was missing.
Solutions
- Regenerate bun.lock with `bun install`
- Restore the lockfile from version control if corrupted
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at src/install/error.rs:179 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/45fca31d05ad91aa.
Report an issue: GitHub.
Appendix: source
Thrown at src/install/error.rs:179
#[error("WriteFailed")]
WriteFailed,
#[error("InvalidCharacter")]
InvalidCharacter,
#[error("InvalidLockfile")]
InvalidLockfile,
#[error("Unexpected lockfile version")]
UnexpectedLockfileVersion,
#[error("Outdated lockfile version")]
OutdatedLockfileVersion,
#[error("Lockfile is missing data")]
LockfileIsMissingData,
#[error("Lockfile is malformed (expected 0 at the end)")]
LockfileIsMalformedExpected0AtTheEnd,
#[error("CorruptLockfile")]
CorruptLockfile,
#[error("Lockfile is missing resolution data")]
LockfileIsMissingResolutionData,
#[error("MissingPackageName")]
MissingPackageName,
#[error("GlobError")]
GlobError,
#[error("Invalid")]
Invalid,
#[error("Lockfile validation failed: list is impossibly long")]
LockfileValidationFailedListIsImpossiblyLong,
#[error("Lockfile validation failed: alignment mismatch")]
LockfileValidationFailedAlignmentMismatch,
#[error("Lockfile validation failed: unexpected number of package fields")]
LockfileValidationFailedUnexpectedNumberOfPackageFields,
#[error("Lockfile validation failed: invalid package list range")]
LockfileValidationFailedInvalidPackageListRange,
#[error("Lockfile validation failed: invalid resolution tag")]
LockfileValidationFailedInvalidResolutionTag,
#[error("Lockfile validation failed: invalid package meta")]
LockfileValidationFailedInvalidPackageMeta,
#[error("Lockfile validation failed: invalid bin tag")]View on GitHub (pinned to 8c5296ac45)