workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

๐Ÿ› BUG: Error: write EOF when running npx wrangler dev

Open elldav opened this issue 1 year ago โ€ข 2 comments

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>

elldav avatar Oct 17 '24 21:10 elldav