kasuga takaki
kasuga takaki
CDCloudflare Developers
Created by kasuga takaki on 4/18/2025 in #workers-help
Build failing with ENOSPC: no space left on device for monorepo project on Cloudflare Workers Build.
Hi everyone, I'm encountering an error while trying to build my monorepo project using Cloudflare Workers Builds. The build process fails during the yarn install --production step with multiple "ENOSPC: no space left on device" errors. Build Command: yarn install --production && yarn build:cf --filter=web Environment: - Node.js: v22.9.0 - Yarn: v4.5.0 (via Corepack, falling back to v1.22.22 as seen in logs) - SKIP_DEPENDENCY_INSTALL environment variable is set. Issue: The build fails when fetching and extracting packages, specifically mentioning packages like @img/sharp-libvips-* and next. The error message consistently points to "no space left on device". I found a similar issue reported on the Cloudflare Community forum, which suggests this might be related to build limitations: https://community.cloudflare.com/t/enospc-no-space-left-on-device-in-cloudflare-workers-when-deploying-next-js-app/756472 Question: My question is: Given that this seems related to build limitations, especially with monorepo structures potentially requiring more disk space during the build, are there any plans to ease these limitations, perhaps by the time Workers Builds reaches General Availability (GA)? We seem to be hitting the current limits with our monorepo setup. Any insights or information on future plans regarding build resource limits would be greatly appreciated. Thanks.
6 replies