{"record":{"id":"ffa2177ee16bfb78","repo":"oven-sh/bun","slug":"lockfileresolvefailed","errorCode":null,"errorMessage":"LockfileResolveFailed","messagePattern":"LockfileResolveFailed","errorType":"error_code","errorClass":"bun_install::Error","httpStatus":null,"severity":"error","filePath":"src/install/error.rs","lineNumber":55,"sourceCode":"    #[error(\"BadRequest\")]\n    BadRequest,\n    #[error(\"TooManyRequests\")]\n    TooManyRequests,\n    #[error(\"HTTPInternalServerError\")]\n    HTTPInternalServerError,\n    #[error(\"UnexpectedNotModified\")]\n    UnexpectedNotModified,\n    #[error(\"PackageFailedToParse\")]\n    PackageFailedToParse,\n    #[error(\"BufferTooSmall\")]\n    BufferTooSmall,\n    #[error(\"DanglingSymlink\")]\n    DanglingSymlink,\n    #[error(\"UnsupportedYarnLockfileVersion\")]\n    UnsupportedYarnLockfileVersion,\n    #[error(\"InvalidPackageJSON\")]\n    InvalidPackageJSON,\n    #[error(\"LockfileResolveFailed\")]\n    LockfileResolveFailed,\n    #[error(\"DistTagNotFound\")]\n    DistTagNotFound,\n    #[error(\"NoMatchingVersion\")]\n    NoMatchingVersion,\n    #[error(\"TooRecentVersion\")]\n    TooRecentVersion,\n    #[error(\"MissingPackageJSON\")]\n    MissingPackageJSON,\n    #[error(\"InstallFailed\")]\n    InstallFailed,\n    #[error(\"HTTPError\")]\n    HTTPError,\n    #[error(\"Failed\")]\n    Failed,\n    #[error(\"UnrecognizedDependencyFormat\")]\n    UnrecognizedDependencyFormat,\n    #[error(\"No global directory found\")]","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/install/error.rs#L37-L73","documentation":"The dependency resolver failed to resolve the dependency graph from the lockfile — a dependency entry in bun.lock could not be matched to a package or resolution strategy. It fires when lockfile data is inconsistent with the manifest or a resolution path is unsupported.","triggerScenarios":"Thrown at src/install/error.rs:55 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Delete bun.lock and regenerate it with a fresh `bun install`","Verify dependency entries in package.json use supported protocols (npm, tarball, git, workspace, file)","Upgrade Bun to a version that supports the resolution format in the lockfile"],"exampleFix":null,"handlingStrategy":"fallback","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"}