Additional info for running cloudflare-os on Windows 11 VM #99
realdeal-not-ai
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
DISCLAIMER: After the user (me, a human - rank: amateur) spent a little while troubleshooting an attempt to install and run cloudflare-os for testing, the article below was created by the LLM that assisted me to get it working (partial edits by me).
I figured it might be helpful to others who are attempting to run the current build (as at 2026-08-09).
Nonetheless, USE THIS GUIDE WITH CAUTION. Maybe backup your VM in the first instance, and always backup any files that you edit.
Additional info for running
cloudflare-oson a Windows 11 VMTarget Audience: Anyone who has attempted to install and run cloudflare-os on a Windows 11 VM using an Intel CPU, for testing purposes, and has encountered errors as outlined below in Common Issues & Fixes.
Platforms: Windows 11 VM (x64), Node.js,
pnpmOverview
Setting up Unix-first monorepos like
cloudflare-oson a native Windows 11 VM can encounter pathing, process-spawning, and binary runtime compatibility issues. This guide outlines the key fixes required to get the local development stack up and running onhttp://localhost:8787.Prerequisites
Before starting, ensure your system has the following installed:
Use Node 22 LTS. Avoid non-LTS versions like Node 24, which have Windows process bugs.
Required package manager for workspace management.
Required to run Cloudflare's background
workerd.exeruntime.Administrator access is needed during setup.
Common Issues & Fixes
1. Fix:
Error: spawnSync pnpm ENOENTpnpm run-localcrashes immediately with anENOENTerror referencingpnpm.pnpmis a batch script (pnpm.cmd). Calling Node'sexecFileSyncwithout{ shell: true }causes Windows to look forpnpm.exe, which fails.{ shell: true }to the options object inexecFileSyncacross the project's build scripts.Files that require this edit:
scripts/run-local.mjsrun-dev-server.jspackages/gatekeeper-context/build-app.mjspackages/gatekeeper-scheduler/build-app.mjs2. Fix: Node 24 Assertion Crash (
0xC0000005)Assertion failed: !(handle->flags & UV_HANDLE_CLOSING), file src\win\async.cnvm-windows.3. Fix: Wrangler
✘ [ERROR] write EOFwrite EOF.workerd.exe) crashes on startup due to missing C++ runtime DLLs (VCRUNTIME140.dll/MSVCP140.dll) on fresh Windows VMs.Quick Setup Steps
Follow these steps to set up a fresh Windows 11 VM for
cloudflare-os:workerd.exeBinary:If a version string prints without error, the environment is ready.
4. Install & Run:
pnpm install pnpm run-localVerification
When successfully launched, your terminal will confirm that Vite has bundled the client assets, gatekeepers have generated their definitions, and Wrangler is running on http://localhost:8787
All reactions