Error occurred while installing tools or dependencies

All my Workers Builds (multiple workers in a monorepo with separate builds) are failing with this error without further details. I saw some resolved a similar issue by disabling the build cache, but that hasn't helped. Is there any way to get further details? Here's a complete build log:
13:04:58.694 Initializing build environment...
13:05:06.723 Success: Finished initializing build environment
13:05:07.559 Cloning repository...
13:05:13.614 Detected the following tools from environment: pnpm@10.6.5, nodejs@22.16.0
13:05:13.788 Failed: error occurred while installing tools or dependencies
13:04:58.694 Initializing build environment...
13:05:06.723 Success: Finished initializing build environment
13:05:07.559 Cloning repository...
13:05:13.614 Detected the following tools from environment: pnpm@10.6.5, nodejs@22.16.0
13:05:13.788 Failed: error occurred while installing tools or dependencies
I notice it fails very quickly (~1s). Previous, successful builds took about a minute for the "Installing tools and dependencies" step.
3 Replies
Kris
KrisOP5mo ago
I can't see anything build or dependency-related that was updated between the successful and failing builds. Leads me to believe something changed in the Workers Build environment. Will probably move to GitHub Action, was just hoping for an easy fix.
Carlos Alberto
Carlos Alberto5mo ago
@Kris Cloudflare's lightweight V8 edge native will often come to blows with the bloated nodejs. You may need alternative configurations. If it's a simple project consider html, css and vanilla javascript. If you're lazy like me, start with deploying one of cloudflare's templates, then add your edits.
Kris
KrisOP5mo ago
Yes, that's likely the issue as the monorepo is now getting quite large. Migrated to GitHub Actions and now everything is smooth again.

Did you find this page helpful?