git404hub

what is bun-windows-shared-cache-repro fr?

hona/bun-windows-shared-cache-repro — explained in plain English

Analysis updated 2026-05-18

0JavaScriptAudience · developerComplexity · 2/5Setup · easy

tl;dr

This project reproduces a Bun bug on Windows where installing packages in parallel with a shared cold cache causes every install to fail, and compares the result against npm and pnpm.

vibe map

mindmap
  root((bun-windows-repro))
    What it does
      Reproduces Bun bug
      Parallel install test
      Shared cold cache
      Compares managers
    Tech stack
      JavaScript
      Node.js
      Bun
      npm and pnpm
    Use cases
      Bug verification
      Package manager comparison
      Windows CI debugging
    Audience
      Bun contributors
      Windows developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Reproduce and verify a known Bun Windows parallel-install cache race condition.

VIBE 2

Compare install reliability between Bun, npm, and pnpm under concurrent, shared-cache conditions.

VIBE 3

Support a bug report or regression test for package manager behavior on Windows CI systems.

what's the stack?

JavaScriptNode.jsBunnpmpnpm

how it stacks up fr

hona/bun-windows-shared-cache-repro00kaku/gallery-slider-block3rd-eden/ircb.io
Stars0
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-05-192016-11-16
MaintenanceDormantDormant
Setup difficultyeasyeasyeasy
Complexity2/52/52/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · easy time til it works · 5min

Requires Node.js plus Bun, npm, and pnpm installed on a Windows machine to run the comparison.

The README does not state a license for this repository.

in plain english

This project is a small test setup built to demonstrate and confirm a specific bug in Bun, a fast JavaScript package manager and runtime, on Windows computers. It reproduces a reported issue where installing packages with Bun fails when multiple installs happen at the same time and share a cold cache folder that has not been used yet, and it compares that behavior against two other popular package managers, npm and pnpm, to see if they have the same problem. The test script starts several separate, independent projects at once, each trying to install the same small set of common packages like express, lodash, and zod, all pointing at one shared cache location. It repeats this process over several rounds and records how many installs succeed or fail for each package manager being tested. The results are stark. In this repository's tests, Bun 1.3.14 failed all 32 install attempts across four rounds, with errors related to file system race conditions, meaning multiple processes tried to write to the same cache location at the same time and got confused. In contrast, npm and pnpm completed all 40 of their attempts with zero failures under the same conditions. The author explains that Windows has stricter rules than Mac or Linux about replacing files and folders while other programs might be using them, which makes this kind of parallel installation trickier to get right. npm and pnpm are built to handle these races safely, while Bun's current approach runs into conflicts when multiple installs try to publish the same extracted package folder into the cache simultaneously. This project is useful for developers debugging Bun reliability issues on Windows, or anyone deciding which package manager to trust for concurrent installs in a Windows-based build pipeline.

prompts (copy fr)

prompt 1
Explain what the stress.mjs script in this repo does when I run it against bun, npm, and pnpm.
prompt 2
Why does Bun fail with ENOTEMPTY and ENOENT errors during parallel installs on Windows according to this repo?
prompt 3
Help me adapt this repro to test a different package manager or fixture against a shared cold cache.
prompt 4
Summarize the difference between how npm, pnpm, and Bun handle concurrent cache writes on Windows.

Frequently asked questions

what is bun-windows-shared-cache-repro fr?

This project reproduces a Bun bug on Windows where installing packages in parallel with a shared cold cache causes every install to fail, and compares the result against npm and pnpm.

What language is bun-windows-shared-cache-repro written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js, Bun.

What license does bun-windows-shared-cache-repro use?

The README does not state a license for this repository.

How hard is bun-windows-shared-cache-repro to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is bun-windows-shared-cache-repro for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.