#7226 Creating a new typescript project fails with an error
Old issue (Nov 2024) on Linux + Node v22/v23. Many versions behind. May be fixed.
Verify with current versions on Linux + Node v22/v23
Analysis Report
Issue Review: cloudflare/workers-sdk#7226
Summary
Creating a new TypeScript project with wrangler init or create-cloudflare fails with generic "Error" message and missing @cloudflare/workers-types dependency.
Findings
- Created: 2024-11-11
- Updated: 2025-10-30
- Version: wrangler 3.60.3 (reported), 4.61.0 (current), C3 2.32.1
- Component: c3, wrangler
- Labels: bug
- Comments: 7
Key Evidence
npx wrangler initfails with generic "Error" during dependency installation on Linux/Node.js v22-23npx create-cloudflare@latestalso fails at same step- Missing
@cloudflare/workers-typesdependency in generated package.json even though tsconfig.json references it - Reporter running on CFLinux (Cloudflare's internal Linux)
- Maintainer @vicb couldn't reproduce on macOS
- Issue appears to be Linux + Node.js v22/v23 specific
- Last activity Nov 2024, reporter @anonrig is a Cloudflare employee
Recommendation
Status: NEEDS VERIFICATION
Reasoning: Issue is over a year old, reported against old versions (wrangler 3.60.3, C3 2.32.1). Current versions are significantly newer (wrangler 4.61.0, C3 2.62.4). The Linux + Node.js v23 specific nature may have been fixed. Reporter is internal employee who may have unique environment.
Action: Request verification with current versions. If still reproducible on Node.js v22/v23 + Linux, investigate npm install subprocess handling in C3.
Suggested Comment
This issue was reported over a year ago against wrangler 3.60.3 and create-cloudflare 2.32.1. Current versions are wrangler 4.61.0 and create-cloudflare 2.62.4 with many fixes in between.
Can anyone verify if this still occurs with the latest versions on Linux with Node.js v22 or v23? If still reproducible, please provide:
- Full output with
--verboseflag- Exact Node.js version
- Linux distribution
Notes & Feedback (0)
No notes yet.