diff --git a/create-turbo/src/index.ts b/create-turbo/src/index.ts index 1ecf1c4f7004a..12e1bf6329d7e 100644 --- a/create-turbo/src/index.ts +++ b/create-turbo/src/index.ts @@ -79,6 +79,7 @@ async function run() { ).dir ); + const isYarnInstalled = shouldUseYarn(); let answers = await inquirer.prompt<{ packageManager: "yarn" | "npm"; install: boolean; @@ -88,7 +89,11 @@ async function run() { type: "list", message: "Which package manager do you want to use?", choices: [ - { name: "Yarn", value: "yarn" }, + { + name: "Yarn", + value: "yarn", + disabled: !isYarnInstalled && "not installed", + }, { name: "NPM", value: "npm" }, // { name: "PNPM", value: "pnpm" }, ],