Deployment Fails Due to "No Space Left on Device" (ENOSPC) Error During NPM Install on Cloudflare

🛠️ Problem Description: Hey everyone, I'm facing an issue while deploying my project on Cloudflare. The build fails during npm install due to a "no space left on device" error. 💡 Things I’ve Tried / Notes: The project builds fine locally without any issues. It also deploys successfully when I run npm run deploy from the terminal. The error seems to occur only when using Cloudflare’s CI/CD pipeline, so I believe it's related to disk space limitations in the build environment.
No description
1 Reply
Chaika
Chaika•4d ago
Workers Builds only have ~8 gb listed for build space as documented https://developers.cloudflare.com/workers/ci-cd/builds/limits-and-pricing/, and in reality ~2.5 gb is instantly taken up by tooling, so only ~5gb or so for source code + packages

Did you find this page helpful?