{"record":{"id":"4dd5df88897e4a78","repo":"oven-sh/bun","slug":"could-not-find-executable-bunexe","errorCode":null,"errorMessage":"Could not find executable: ${bunExe}","messagePattern":"Could not find executable: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"scripts/runner.node.mjs","lineNumber":2720,"sourceCode":"        BUN_DEBUG_QUIET_LOGS: 1,\n      },\n    });\n    if (error) {\n      throw error;\n    }\n    execPath = stdout.trim();\n  } catch (cause) {\n    error = cause;\n  }\n\n  if (execPath) {\n    if (isExecutable(execPath)) {\n      return execPath;\n    }\n    error = new Error(`File is not an executable: ${execPath}`);\n  }\n\n  throw new Error(`Could not find executable: ${bunExe}`, { cause: error });\n}\n\n/**\n * @param {string} target\n * @param {string} [buildId]\n * @returns {Promise<string>}\n */\nasync function getExecPathFromBuildKite(target, buildId) {\n  if (existsSync(target) || target.includes(\"/\")) {\n    return getExecPath(target);\n  }\n\n  const releasePath = join(cwd, \"release\");\n  mkdirSync(releasePath, { recursive: true });\n\n  let zipPath;\n  downloadLoop: for (let i = 0; i < 10; i++) {\n    // build-bun also uploads libbun-*.a / libbun_rust.a / dep libs; only the zips are wanted here.","sourceCodeStart":2702,"sourceCodeEnd":2738,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/scripts/runner.node.mjs#L2702-L2738","documentation":"Error \"Could not find executable: ${bunExe}\" thrown in oven-sh/bun.","triggerScenarios":"Thrown at scripts/runner.node.mjs:2720 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}