I’m going through the guide here (/workers/get-started/guide/), and went to run my first project locally. First thing I noticed is, in worker.js, it says:
* - Run `npm run dev` in your terminal to start a development server
Which won’t work as the script in package.json is start
, not dev
. I tried that though and got this:
⎔ Starting local server...
[mf:wrn] The latest compatibility date supported by the installed Cloudflare Workers Runtime is "2023-05-18",
but you've requested "2023-06-26". Falling back to "2023-05-18"...
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ [b] open a browser, [d] open Devtools, [l] turn off local mode, [c] clear console, [x] to exit │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
/home/ray/projects/cloudflare/hello-ray/node_modules/wrangler/wrangler-dist/cli.js:30632
throw a;
^
Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:160:15)
at writeGeneric (node:internal/stream_base_commons:151:3)
at Socket._writeGeneric (node:net:946:11)
at Socket._write (node:net:958:8)
at writeOrBuffer (node:internal/streams/writable:399:12)
at _write (node:internal/streams/writable:340:10)
at Writable.write (node:internal/streams/writable:344:10)
at Runtime.updateConfig (/home/ray/projects/cloudflare/hello-ray/node_modules/miniflare/dist/src/index.js:5125:26)
at async #assembleAndUpdateConfig (/home/ray/projects/cloudflare/hello-ray/node_modules/miniflare/dist/src/index.js:9140:23)
at async #init (/home/ray/projects/cloudflare/hello-ray/node_modules/miniflare/dist/src/index.js:8902:5)
Emitted 'error' event on Socket instance at:
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -32,
code: 'EPIPE',
syscall: 'write'
}
Node.js v20.1.0
Any ideas?