Any project using Wrangler fails with write EOF error on Windows:
Astro with Cloudflare adapter:
pnpm astro dev
[@astrojs/cloudflare] An unhandled error occurred while running the "astro:server:setup" hook
write EOF
Stack trace:
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:87:19)
Cloudflare Workers:
pnpm wrangler dev
X [ERROR] write EOF
Missing Visual C++ Redistributable runtime libraries required by Wrangler's native modules.
install_tools.bat from Node.js folder - it installs unnecessary tools (Python, Chocolatey, Windows SDK ~10GB+).
Install Visual C++ Redistributable instead:
Option 1: Via winget
winget install Microsoft.VCRedist.2015+.x64
winget install Microsoft.VCRedist.2015+.x86Option 2: Direct download
- x64: https://aka.ms/vs/17/release/vc_redist.x64.exe
- x86: https://aka.ms/vs/17/release/vc_redist.x86.exe
Restart terminal and run your wrangler project again ✅
Size: ~25MB (vs ~3GB for Build Tools)
- Windows 10/11
- Node.js 24.12.0
- Wrangler 4.55.0
Amazing, this works! Thanks.