Failed: error occurred while installing tools or dependencies

My Workers Build started failing 3 days ago. I even tried to rerun an old build that previously worked, and it fails in the same way. I get the same error with or without using the build cache.
23:05:24.942 Initializing build environment...
23:05:34.999 Success: Finished initializing build environment
23:05:35.906 Cloning repository...
23:05:40.810 Found a .tool-versions file in repository root. Installing dependencies.
23:05:40.818 Restoring from dependencies cache
23:05:40.821 Restoring from build output cache
23:05:40.909 Failed: error occurred while installing tools or dependencies
23:05:24.942 Initializing build environment...
23:05:34.999 Success: Finished initializing build environment
23:05:35.906 Cloning repository...
23:05:40.810 Found a .tool-versions file in repository root. Installing dependencies.
23:05:40.818 Restoring from dependencies cache
23:05:40.821 Restoring from build output cache
23:05:40.909 Failed: error occurred while installing tools or dependencies
5 Replies
Walshy
Walshy2mo ago
?link please link your account @jonasb
SuperHelpflare
SuperHelpflare2mo ago
Please use the /link command to authenticate with your Cloudflare account and link it to your Discord user. This helps Cloudflare employees access your details more quickly and provide support. It also makes future support requests easier, since your account will already be linked.
Walshy
Walshy2mo ago
and what's the build id? ?workers-build-id
SuperHelpflare
SuperHelpflare2mo ago
The Workers build ID is a unique build identifier. It's the UUID in the browser bar (for example, a URL would be dash.cloudflare.com/ACCOUNT_ID/workers/services/view/WORKER/production/builds/BUILD_ID where the build ID looks something like a398d794-7322-4c97-96d9-40b5140a8d9b). This ID can help troubleshoot some issues with Workers builds so if you have a failing build make sure you grab that ID for the team to use.
jonasb
jonasbOP3w ago
Thanks! Linked my account now. Here's a build id: e867eead-b26a-41f5-be46-bc066dfe6e8a @Walshy finally took the time to debug this thoroughly. The problem seems to be that I specified pnpm in .tool-versions (in addition to in {"packageManager"} in package.json. Found a workaround where I removed .tool-versions. (I'm using mise-en-place for managing tools locally and on Github Actions, so ended up putting the versions in mise.toml instead)

Did you find this page helpful?