I have followed the README directives on the
https://github.com/cloudflare/next-on-pages and installed the default Next.js on Pages app.
The build CLI, "npx
@Cloudflare/next-on-pages" works fine and produces ".vercel/output/static directory" successfully
But when I run, "npx wrangler pages dev .vercel/output/static --compatibility-flag=nodejs_compat", I get the error message below:
/home/dberuser/.config/yarn/global/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)
at Socket._write (node:net:942:8)
at writeOrBuffer (node:internal/streams/writable:392:12)
at _write (node:internal/streams/writable:333:10)
at Writable.write (node:internal/streams/writable:337:10)
at Runtime.updateConfig (/home/dberuser/.config/yarn/global/node_modules/miniflare/dist/src/index.js:5120:26)
at async #assembleAndUpdateConfig (/home/dberuser/.config/yarn/global/node_modules/miniflare/dist/src/index.js:9130:23)
at async #init (/home/dberuser/.config/yarn/global/node_modules/miniflare/dist/src/index.js:8894: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 v18.15.0
error Command failed with exit code 7.