{"record":{"id":"d7f0894f6e21b92b","repo":"oven-sh/bun","slug":"unsupported-package-manager-packagemanager","errorCode":null,"errorMessage":"Unsupported package manager: ${packageManager}","messagePattern":"Unsupported package manager: (.+?)","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"scripts/runner.node.mjs","lineNumber":1191,"sourceCode":"      startGroup(`Running ${parallelSafeTests.length} parallel-safe tests (${parallelSafeWidth}-wide)`);\n    }\n    await Promise.all(parallelSafeTests.map(t => parallelSafeLimit(() => runOneTest(t, parallelSafeWidth > 1))));\n  }\n\n  if (vendorTests?.length) {\n    for (const { cwd: vendorPath, packageManager, testRunner, testPaths } of vendorTests) {\n      if (!testPaths.length) {\n        continue;\n      }\n\n      const packageJson = join(relative(cwd, vendorPath), \"package.json\").replace(/\\\\/g, \"/\");\n      if (packageManager === \"bun\") {\n        const { ok } = await runTest(packageJson, () => spawnBunInstall(execPath, { cwd: vendorPath }));\n        if (!ok) {\n          continue;\n        }\n      } else {\n        throw new Error(`Unsupported package manager: ${packageManager}`);\n      }\n\n      // build\n      const buildResult = await spawnBun(execPath, {\n        cwd: vendorPath,\n        args: [\"run\", \"build\"],\n        timeout: 60_000,\n      });\n      if (!buildResult.ok) {\n        throw new Error(`Failed to build vendor: ${buildResult.error}`);\n      }\n\n      for (const testPath of testPaths) {\n        const title = join(relative(cwd, vendorPath), testPath).replace(/\\\\/g, \"/\");\n\n        if (testRunner === \"bun\") {\n          await runTest(title, index =>\n            spawnBunTest(execPath, testPath, { cwd: vendorPath, env: { TEST_SERIAL_ID: index } }),","sourceCodeStart":1173,"sourceCodeEnd":1209,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/scripts/runner.node.mjs#L1173-L1209","documentation":"Error \"Unsupported package manager: ${packageManager}\" thrown in oven-sh/bun.","triggerScenarios":"Thrown at scripts/runner.node.mjs:1191 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"}