Why does worker build detect that you are using npm for repositories that use bun?

I was able to build using bun until 5h ago. 12:24:52.250 Initializing build environment... 12:25:02.504 Success: Finished initializing build environment 12:25:03.228 Cloning repository... 12:25:04.686 Detected the following tools from environment: [email protected], [email protected], [email protected] 12:25:04.687 Installing project dependencies: bun install --frozen-lockfile 12:25:04.976 bun install v1.1.33 (247456b6) But now npm install runs in node. 17:33:55.070 Detected the following tools from environment: [email protected], [email protected] 17:33:55.071 Installing project dependencies: npm install --progress=false
3 Replies
shun
shunOP5d ago
I would like to know what you are looking at to identify the runtime and package manager, is there any documentation? oh.. fixed now ?
Giraffe
Giraffe3d ago
Did you figure anything out? Had bun.lock in the root, and Cloudflare detects bun env via bun.lockb - solved that by adding lockb to the root of the project.
shun
shunOP2d ago
I didn't have to do anything special to fix it. Originally, bun.lockb was not detected with bun present in the root of the project, but now it is.

Did you find this page helpful?