oven-sh/bun · error · bun_install::Error
NoPackage
Error message
NoPackage
What it means
A package entry being processed has no package data — the package could not be found or resolved at all (distinct from a version mismatch). It fires when a dependency resolves to no package record, e.g. the name does not exist on the registry.
Solutions
- Verify the dependency name is spelled correctly and exists on the registry
- Check scoped package names include the right scope
- Clear the metadata cache and re-resolve
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/install/error.rs:157 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/37368b0a08cc718a.
Report an issue: GitHub.
Appendix: source
Thrown at src/install/error.rs:157
#[error("MissingLevelField")]
MissingLevelField,
#[error("InvalidLevelField")]
InvalidLevelField,
#[error("InvalidLevelValue")]
InvalidLevelValue,
#[error("Missing global bin directory: try setting $BUN_INSTALL")]
MissingGlobalBinDirectoryTrySettingBUNINSTALL,
#[error("InvalidURL")]
InvalidURL,
#[error("Fail")]
Fail,
#[error("IntegrityCheckFailed")]
IntegrityCheckFailed,
#[error("RepositoryNotFound")]
RepositoryNotFound,
#[error("DebugTextLockfileRoundTrip")]
DebugTextLockfileRoundTrip,
#[error("NoPackage")]
NoPackage,
#[error("BrokenPipe")]
BrokenPipe,
#[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")]View on GitHub (pinned to 8c5296ac45)