{"record":{"id":"217bd4ad8874ad01","repo":"oven-sh/bun","slug":"invalidbincount","errorCode":null,"errorMessage":"InvalidBinCount","messagePattern":"InvalidBinCount","errorType":"error_code","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/install/error.rs","lineNumber":211,"sourceCode":"    #[error(\"Lockfile validation failed: invalid resolution tag\")]\n    LockfileValidationFailedInvalidResolutionTag,\n    #[error(\"Lockfile validation failed: invalid package meta\")]\n    LockfileValidationFailedInvalidPackageMeta,\n    #[error(\"Lockfile validation failed: invalid bin tag\")]\n    LockfileValidationFailedInvalidBinTag,\n    #[error(\"Lockfile validation failed: invalid package scripts\")]\n    LockfileValidationFailedInvalidPackageScripts,\n    #[error(\"InvalidNPMLockfile\")]\n    InvalidNPMLockfile,\n    #[error(\"NotSupported\")]\n    NotSupported,\n    #[error(\"Unexpected\")]\n    Unexpected,\n    #[error(\"NotSameFileSystem\")]\n    NotSameFileSystem,\n    #[error(\"FailedToCopyFile\")]\n    FailedToCopyFile,\n    #[error(\"InvalidBinCount\")]\n    InvalidBinCount,\n    #[error(\"InvalidBinContent\")]\n    InvalidBinContent,\n\n    #[error(transparent)]\n    Sys(#[from] bun_errno::SystemErrno),\n    #[error(transparent)]\n    Alloc(#[from] bun_alloc::AllocError),\n    #[error(transparent)]\n    Core(#[from] bun_core::Error),\n    #[error(transparent)]\n    Resolver(#[from] bun_resolver::Error),\n    #[error(transparent)]\n    Spawn(#[from] bun_spawn::Error),\n    #[error(transparent)]\n    Http(#[from] bun_http::Error),\n    #[error(transparent)]\n    PackageManifest(#[from] crate::PackageManifestError),","sourceCodeStart":193,"sourceCodeEnd":229,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/install/error.rs#L193-L229","documentation":"Sentinel variant of the install Error enum: while validating a package's bin/executables section in the lockfile or package metadata, the recorded number of bin entries is inconsistent with the data (e.g. count exceeds available entries). Sibling of InvalidBinContent, which covers malformed entry contents.","triggerScenarios":"Thrown at src/install/error.rs:211 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Regenerate bun.lock","Fix conflicting/duplicate bin entries in the package's package.json","Report lockfile validation bugs to Bun's issues"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","contentChangedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}