Netlify currently crashes in Bun projects due to Bun 1.2 missing in corepack (Currently set to Node 22.x), log:
1:05:02 PM: build-image version: 6724b7f630462a3bda7629c0c4b9c485399606e3 (noble)
1:05:02 PM: buildbot version: 6724b7f630462a3bda7629c0c4b9c485399606e3
1:05:02 PM: Fetching cached dependencies
1:05:02 PM: Starting to download cache of 512.7MB
1:05:03 PM: Finished downloading cache in 1.365s
1:05:03 PM: Starting to extract cache
1:05:08 PM: Finished extracting cache in 5.224s
1:05:08 PM: Finished fetching cache in 6.663s
1:05:08 PM: Starting to prepare the repo for build
1:05:09 PM: Preparing Git Reference refs/heads/main
1:05:10 PM: Starting to install dependencies
1:05:10 PM: Started restoring cached mise cache
1:05:11 PM: Finished restoring cached mise cache
1:05:12 PM: Python version set to 3.13.1
1:05:12 PM: Ruby version set to 2.7.2
1:05:12 PM: Go version set to 1.19
1:05:13 PM: Using PHP version 8.3
1:05:14 PM: Started restoring cached Node.js version
1:05:15 PM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1
1:05:15 PM: Finished restoring cached Node.js version
1:05:15 PM: v22.13.1 is already installed.
1:05:15 PM: Now using node v22.13.1 (npm v10.9.2)
1:05:15 PM: Enabling Node.js Corepack
1:05:15 PM: Started restoring cached build plugins
1:05:15 PM: Finished restoring cached build plugins
1:05:15 PM: Started restoring cached corepack dependencies
1:05:15 PM: Finished restoring cached corepack dependencies
1:05:15 PM: Started restoring cached bun global cache
1:05:15 PM: Finished restoring cached bun global cache
1:05:15 PM: mise ERROR Tool not installed for shim: bun
1:05:15 PM: Missing tool version: core:bun@1.2.0
1:05:15 PM: Install all missing tools with: mise install
1:05:15 PM: mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
1:05:15 PM: Installing npm packages using bun version
1:05:15 PM: mise ERROR Tool not installed for shim: bun
1:05:15 PM: Missing tool version: core:bun@1.2.0
1:05:15 PM: Install all missing tools with: mise install
1:05:15 PM: mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
1:05:15 PM: Error during bun install
1:05:15 PM: Failing build: Failed to install dependencies
I tried:
- Setting
"packageManager": "bun@1.1.45"
and"packageManager": "bun@1.2.0"
in my package.json, still same error - Running the bun install script during
build
, same error (expected that since this is before build, but was worth a try) - Looking in the docs to find some bun version setting,
BUN_VERSION
variable, or some install step setting; could not find any
The only workaround I can think of is to delete my bun.lock
file to get around the install detection, but I would prefer not to!
I’m using pnpm for now, but would love to see this fixed