workers-sdk
workers-sdk copied to clipboard
๐ BUG: Error: write EOF when running npx wrangler dev
Which Cloudflare product(s) does this pertain to?
Wrangler
What version(s) of the tool(s) are you using?
wrangler 3.81.0
What version of Node are you using?
Node.js v20.18.0
What operating system and version are you using?
Windows 11, Win32NT 10.0.22621.0 Microsoft Windows NT 10.0.22621.0
Describe the Bug
Observed behavior
I'm gong thru the getting started instructions from https://developers.cloudflare.com/workers/get-started/guide/. When I get to the point to run the npx wrangler dev command it gets an error. I see there is another similar issue. The last request on that was the version of the OS. I included that in the field above. Do you need any other information?
Expected behavior
Not sure. First time trying out Workers. From the docs it looks like it would run a service that I could connect to via a browser.
Steps to reproduce
PS C:\Users\WDAGUtilityAccount> nvm install lts Downloading node.js version 20.18.0 (64-bit)... Extracting node and npm... Complete npm v10.8.2 installed successfully.
Installation complete. If you want to use this version, type
nvm use 20.18.0 PS C:\Users\WDAGUtilityAccount> nvm use lts Now using node v20.18.0 (64-bit) PS C:\Users\WDAGUtilityAccount> npm create cloudflare@latest -- my-first-worker Need to install the following packages: [email protected] Ok to proceed? (y)
npx create-cloudflare my-first-worker
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ๐ Welcome to create-cloudflare v2.30.0! ๐งก Let's get started. ๐ Cloudflare collects telemetry about your usage of Create-Cloudflare.
Learn more at: https://github.com/cloudflare/workers-sdk/blob/main/packages/create-cloudflare/telemetry.md โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โญ Create an application with Cloudflare Step 1 of 3
โ
โ In which directory do you want to create your application?
โ dir ./my-first-worker
โ
โ What would you like to start with?
โ category Hello World example
โ
โ Which template would you like to use?
โ type Hello World Worker
โ
โ Which language do you want to use?
โ lang JavaScript
โ
โ Copying template files
โ files copied to project directory
โ
โ Updating name in package.json
โ updated package.json
โ
โ Installing dependencies
โ installed via npm install
โ
โฐ Application created
โญ Configuring your application for Cloudflare Step 2 of 3 โ โ Retrieving current workerd compatibility date โ compatibility date 2024-10-11 โ โฐ Application configured
โญ Deploy with Cloudflare Step 3 of 3
โ
โ Do you want to deploy your application?
โ no deploy via npm run deploy
โ
โฐ Done
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ๐ SUCCESS Application created successfully!
๐ป Continue Developing Change directories: cd my-first-worker Start dev server: npm run start Deploy: npm run deploy
๐ Explore Documentation https://developers.cloudflare.com/workers
๐ฌ Join our Community https://discord.cloudflare.com โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
npm notice npm notice New minor version of npm available! 10.8.2 -> 10.9.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.0 npm notice To update run: npm install -g [email protected] npm notice PS C:\Users\WDAGUtilityAccount> cd my-first-worker PS C:\Users\WDAGUtilityAccount\my-first-worker> npx wrangler dev
โ ๏ธ wrangler 3.81.0
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ Starting local server... โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ โ [b] open a browser, [d] open devtools, [l] turn off local mode, [c] clear console, [x] to exit โ โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ C:\Users\WDAGUtilityAccount\my-first-worker\node_modules\wrangler\wrangler-dist\cli.js:29768 throw a; ^
Error: write EOF at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:95:16) at WriteWrap.callbackTrampoline (node:internal/async_hooks:130:17) { errno: -4095, code: 'EOF', syscall: 'write' }
Node.js v20.18.0 PS C:\Users\WDAGUtilityAccount\my-first-worker>
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
C:\Users\WDAGUtilityAccount\my-first-worker\node_modules\wrangler\wrangler-dist\cli.js:29768 throw a; ^
Error: write EOF at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:95:16) at WriteWrap.callbackTrampoline (node:internal/async_hooks:130:17) { errno: -4095, code: 'EOF', syscall: 'write' }
Node.js v20.18.0 PS C:\Users\WDAGUtilityAccount\my-first-worker>