{"record":{"id":"9219151a0824329a","repo":"vercel/turborepo","slug":"unable-to-install-dependencies-examplename","errorCode":null,"errorMessage":"Unable to install dependencies - \"${exampleName}\" uses \"${project.packageManager}\" which could not be found.","messagePattern":"Unable to install dependencies - \"(.+?)\" uses \"(.+?)\" which could not be found\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"packages/create-turbo/src/commands/create/index.ts","lineNumber":215,"sourceCode":"        ` - ${picocolors.bold(title)}${description ? `: ${description}` : \"\"}`\n      );\n      lastGroup = group;\n    }\n  } else {\n    logger.log(picocolors.cyan(\"apps\"));\n    logger.log(` - ${picocolors.bold(projectName)}`);\n  }\n\n  // run install\n  logger.log();\n  if (hasPackageJson && !skipInstall) {\n    // in the case when the user opted out of transforms, but not install, we need to make sure the package manager is available\n    // before we attempt an install\n    if (\n      opts.skipTransforms &&\n      !availablePackageManagers[project.packageManager]\n    ) {\n      warn(\n        `Unable to install dependencies - \"${exampleName}\" uses \"${project.packageManager}\" which could not be found.`\n      );\n      warn(\n        `Try running without \"--skip-transforms\" to convert \"${exampleName}\" to a package manager that is available on your system.`\n      );\n      logger.log();\n    } else if (projectPackageManager.version) {\n      const loader = turboLoader(\"Installing dependencies...\").start();\n      await install({\n        project,\n        to: projectPackageManager,\n        options: {\n          interactive: false\n        }\n      });\n\n      loader.stop();\n    }","sourceCodeStart":197,"sourceCodeEnd":233,"githubUrl":"https://github.com/vercel/turborepo/blob/f9245100cf0d31d96628804ead485f6bf226e55a/packages/create-turbo/src/commands/create/index.ts#L197-L233","documentation":"With --skip-transforms, create-turbo does not convert the example, so before installing it verifies that the example's declared package manager is among availablePackageManagers detected on the system. When it is missing, dependency installation is skipped with this warning (plus the follow-up hint) — the project files are still created, only `install()` is not run for that branch.","triggerScenarios":"`create-turbo --skip-transforms` without --skip-install, choosing an example whose package.json declares e.g. pnpm or yarn while the availablePackageManagers lookup (PATH-based detection) cannot find that binary.","commonSituations":"Machines with only npm installed (no corepack/pnpm/yarn); minimal CI images creating a pnpm- or yarn-based example; examples pinned to a different package manager than the user's default.","solutions":["Install the missing package manager (e.g. `corepack enable` or `npm i -g pnpm`) and re-run","Re-run without --skip-transforms so create-turbo converts the example to an available manager","Pass --skip-install and run the install manually with whatever manager you prefer"],"exampleFix":"# before: example uses pnpm, machine has only npm\nnpx create-turbo@latest my-app --skip-transforms\n# warn: Unable to install dependencies - \"basic\" uses \"pnpm\" which could not be found.\n\n# after: make pnpm available\ncorepack enable\nnpx create-turbo@latest my-app --skip-transforms","handlingStrategy":"validation","validationCode":"# Verify the example's package manager exists before --skip-transforms install\ncommand -v pnpm >/dev/null 2>&1 || command -v yarn >/dev/null 2>&1 \\\n  || { echo 'enable corepack first'; corepack enable; }\nnpx create-turbo@latest my-app --skip-transforms","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run `corepack enable` in dev containers so pnpm/yarn are always resolvable","Combine --skip-transforms with --skip-install when the example's manager is deliberately absent","Ensure managers are discoverable on PATH — npx-only environments may not expose them"],"tags":["create-turbo","package-manager","install","skip-transforms"],"backgroundTag":"package-manager-not-found","analyzedSha":"f9245100cf0d31d96628804ead485f6bf226e55a","analyzedAt":"2026-08-17T10:46:15.696Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}