{"record":{"id":"e07e9b6aa25bbea1","repo":"vercel/turborepo","slug":"skip-transforms-conflicts-with-package-manager","errorCode":null,"errorMessage":"--skip-transforms conflicts with <package-manager>. The package manager argument will be ignored.","messagePattern":"--skip-transforms conflicts with <package-manager>\\. The package manager argument will be ignored\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"packages/create-turbo/src/commands/create/index.ts","lineNumber":95,"sourceCode":"\n  let isMaintainedByCoreTeam = false;\n\n  const { packageManager, skipInstall, skipTransforms, git } = opts;\n\n  const availablePackageManagers = await getAvailablePackageManagers();\n\n  const { root, projectName } = await prompts.directory({ dir: directory });\n  const relativeProjectDir = path.relative(process.cwd(), root);\n  const projectDirIsCurrentDir = relativeProjectDir === \"\";\n\n  // selected package manager can be undefined if the user chooses to skip transforms\n  const selectedPackageManagerDetails = await prompts.packageManager({\n    manager: packageManager,\n    skipTransforms\n  });\n\n  if (packageManager && opts.skipTransforms) {\n    warn(\n      \"--skip-transforms conflicts with <package-manager>. The package manager argument will be ignored.\"\n    );\n  }\n\n  const { example, examplePath } = opts;\n  const exampleName = example && example !== \"default\" ? example : \"basic\";\n\n  let projectData = {} as Awaited<ReturnType<typeof createProject>>;\n  try {\n    projectData = await createProject({\n      appPath: root,\n      example: exampleName,\n      isDefaultExample: isDefaultExample(exampleName),\n      examplePath\n    });\n  } catch (err) {\n    handleErrors(err, opts.telemetry);\n  }","sourceCodeStart":77,"sourceCodeEnd":113,"githubUrl":"https://github.com/vercel/turborepo/blob/f9245100cf0d31d96628804ead485f6bf226e55a/packages/create-turbo/src/commands/create/index.ts#L77-L113","documentation":"create-turbo (npx create-turbo / pnpm create turbo) warns when a positional <package-manager> argument is combined with --skip-transforms. Transforms are what convert the chosen example to the requested package manager, so skipping them makes the manager argument meaningless; it is ignored and the example keeps its own package manager (the prompts layer may then also leave the selection unset).","triggerScenarios":"Invoking create-turbo with both options, e.g. `npx create-turbo@latest my-app --skip-transforms pnpm` or `pnpm create turbo my-app --skip-transforms npm`, where opts.skipTransforms is truthy while packageManager is provided.","commonSituations":"Copy-pasted commands that accumulate flags over time; scripts that always pass a package manager plus a skip flag; misunderstanding that --skip-transforms preserves the example's own tooling.","solutions":["Drop --skip-transforms if you want the example converted to your package manager","Drop the <package-manager> argument if you truly want the example untouched","Add --skip-install when the example's own package manager is not installed locally"],"exampleFix":"# before\nnpx create-turbo@latest my-app --skip-transforms pnpm\n\n# after: convert the example to pnpm\nnpx create-turbo@latest my-app pnpm\n# or keep the example as-is:\nnpx create-turbo@latest my-app --skip-transforms --skip-install","handlingStrategy":"validation","validationCode":"// Before spawning create-turbo, reject the contradictory combination\nif (skipTransforms && positionalPackageManager) {\n  throw new Error('pass either --skip-transforms or a <package-manager>, not both');\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Read create-turbo's flag semantics before stacking flags in scripts","Pin and lint the exact invocation in CI instead of copy-pasting accreted commands","Remember --skip-transforms means the example keeps its own package manager"],"tags":["create-turbo","cli","package-manager","flag-conflict"],"backgroundTag":"conflicting-cli-options","analyzedSha":"f9245100cf0d31d96628804ead485f6bf226e55a","analyzedAt":"2026-08-17T10:46:15.696Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}