Error when using npm run pages:dev
# pages-help
g
Preface: I'm a noob. I've created a new Website/Web App project using
npm create cloudflare
. I selected the nuxt template but have also tried with next.js too.
npm run pages:deploy
seems to work no problem. However, when I try to use the other available command,
npm run pages:dev
I get an error in console and it fails.
Copy code
bash
/home/<username>/code/<project>/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:930:11)
Relevant info is that Node version is
18.16.0
- This is using WSL2 on Windows 11.
b
Hello, looks like you're running into this issue - https://github.com/cloudflare/workers-sdk/issues/3262
I had the same problem, and switching to Ubuntu 22.04 and making sure I installed all the workerd dependencies fixed it.
g
ah okay awesome, will give this a shot. Thanks!
2 Views