diff --git a/lib/console/init.ts b/lib/console/init.ts index cee916ea..4e15a4ae 100644 --- a/lib/console/init.ts +++ b/lib/console/init.ts @@ -52,10 +52,10 @@ async function initConsole(this: Context, args: InitArgs) { log.info('Install dependencies'); let npmCommand = 'npm'; - if (commandExistsSync('yarn')) { - npmCommand = 'yarn'; - } else if (commandExistsSync('pnpm')) { + if (commandExistsSync('pnpm')) { npmCommand = 'pnpm'; + } else if (commandExistsSync('yarn')) { + npmCommand = 'yarn'; } try {