Have you read the Contributing Guidelines on issues?
Prerequisites
Description
When initializing a new Docusaurus project using pnpm create docusaurus or npm init docusaurus on Windows, the interactive prompts (specifically the language selection) appear to freeze. Keyboard input (arrow keys) is ignored until the user presses Enter once.
Outdated Information (Click to expand)
Gemini says, this is what causing the issue, for something called "race condition":
const [templates, siteName] = await Promise.all([
readTemplates(),
getSiteName(reqName, rootDir),
]);
L527-L530
Reproducible demo
No response
Steps to reproduce
- Run
pnpm create docusaurus on a Windows machine.
- Provide a site name.
- Select template classic
- Face the issue
Expected behavior
To be able to create a project without interruption
Actual behavior
Prompts lose keyboard focus until pressed Enter
Your environment
- Docusaurus version used: 3.9.2
- Environment name and version: Node.js 24
- Operating system and version: Windows 11 25H2
- Shell: PowerShell 7 and Git Bash
Self-service
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
When initializing a new Docusaurus project using
pnpm create docusaurusornpm init docusauruson Windows, the interactive prompts (specifically the language selection) appear to freeze. Keyboard input (arrow keys) is ignored until the user presses Enter once.Outdated Information (Click to expand)
Gemini says, this is what causing the issue, for something called "race condition":L527-L530
Reproducible demo
No response
Steps to reproduce
pnpm create docusauruson a Windows machine.Expected behavior
To be able to create a project without interruption
Actual behavior
Prompts lose keyboard focus until pressed Enter
Your environment
Self-service