Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bikash119/bf77aeef9d886d3fcf68796a8ae9a0a1 to your computer and use it in GitHub Desktop.
Save bikash119/bf77aeef9d886d3fcf68796a8ae9a0a1 to your computer and use it in GitHub Desktop.
Error thrown while trying to create a npm project
Tried creating new npm project using cloudflare@latest
`npm create cloudflare@latest new-prj -- --framework=react-router`
--- 2025-05-28T06:01:29.031Z debug
πŸͺ΅ Writing logs to "/Users/boredmgr/Library/Preferences/.wrangler/logs/wrangler-2025-05-28_06-01-28_851.log"
---
--- 2025-05-28T06:01:29.031Z debug
Metrics dispatcher: Posting data {"deviceId":"a5847bd1-ae19-4037-847d-da6b141f9944","event":"wrangler command started","timestamp":1748412089031,"properties":{"amplitude_session_id":1748412089025,"amplitude_event_id":0,"wranglerVersion":"4.17.0","osPlatform":"Mac OS","osVersion":"Darwin Kernel Version 21.6.0: Mon Jun 24 00:56:10 PDT 2024; root:xnu-8020.240.18.709.2~1/RELEASE_X86_64","nodeVersion":22,"packageManager":"npm","isFirstUsage":false,"configFileType":"jsonc","isCI":false,"isPagesCI":false,"isWorkersCI":false,"isInteractive":true,"hasAssets":false,"argsUsed":[],"argsCombination":"","command":"wrangler types","args":{"xJsonConfig":true,"j":true,"envInterface":"<REDACTED>","includeRuntime":true,"includeEnv":true,"strictVars":true,"path":"worker-configuration.d.ts"}}}
---
--- 2025-05-28T06:01:29.041Z debug
.env file not found at ".env". Continuing... For more details, refer to https://developers.cloudflare.com/workers/wrangler/system-environment-variables/
---
--- 2025-05-28T06:01:29.103Z log
⛅️ wrangler 4.17.0
───────────────────
---
--- 2025-05-28T06:01:29.132Z log
Generating project types...
---
--- 2025-05-28T06:01:29.134Z debug
.env file not found at ".dev.vars". Continuing... For more details, refer to https://developers.cloudflare.com/workers/wrangler/system-environment-variables/
---
--- 2025-05-28T06:01:29.135Z log
declare namespace Cloudflare {
 interface Env {
 VALUE_FROM_CLOUDFLARE: "Hello from Cloudflare";
 }
}
interface Env extends Cloudflare.Env {}

---
--- 2025-05-28T06:01:29.135Z log
Generating runtime types...
---
--- 2025-05-28T06:01:30.503Z log
---
--- 2025-05-28T06:01:30.565Z error
✘ [ERROR] write EPIPE
---
--- 2025-05-28T06:01:30.565Z debug
Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:87:19)
at WriteWrap.callbackTrampoline (node:internal/async_hooks:130:17)
---
--- 2025-05-28T06:01:30.566Z log
If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose
---
--- 2025-05-28T06:01:36.702Z debug
Sentry: Capturing exception Error: write EPIPE
---
--- 2025-05-28T06:01:36.708Z debug
Metrics dispatcher: Posting data {"deviceId":"a5847bd1-ae19-4037-847d-da6b141f9944","event":"wrangler command errored","timestamp":1748412096708,"properties":{"amplitude_session_id":1748412089025,"amplitude_event_id":1,"wranglerVersion":"4.17.0","osPlatform":"Mac OS","osVersion":"Darwin Kernel Version 21.6.0: Mon Jun 24 00:56:10 PDT 2024; root:xnu-8020.240.18.709.2~1/RELEASE_X86_64","nodeVersion":22,"packageManager":"npm","isFirstUsage":false,"configFileType":"jsonc","isCI":false,"isPagesCI":false,"isWorkersCI":false,"isInteractive":true,"hasAssets":false,"argsUsed":[],"argsCombination":"","command":"wrangler types","args":{"xJsonConfig":true,"j":true,"envInterface":"<REDACTED>","includeRuntime":true,"includeEnv":true,"strictVars":true,"path":"worker-configuration.d.ts"},"durationMs":7705,"durationSeconds":7.705,"durationMinutes":0.12841666666666668,"errorType":"Error"}}
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment