Skip to content

Skip OTP prompts in non-TTY mode#7209

Open
Andarist wants to merge 1 commit into
yarnpkg:masterfrom
Andarist:fix/skip-otp-prompt-non-tty
Open

Skip OTP prompts in non-TTY mode#7209
Andarist wants to merge 1 commit into
yarnpkg:masterfrom
Andarist:fix/skip-otp-prompt-non-tty

Conversation

@Andarist

@Andarist Andarist commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

What's the problem this PR addresses?

Programmatic calls to yarn can hang because yarn asks for the otp when the user is not there to provide it. To workaround this one, can call yarn with stdin: "000000\n"

How did you fix it?

non-tty mode throws an error now instead of prompting

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant