bun icon indicating copy to clipboard operation
bun copied to clipboard

bun install does not skip resolution even with lock file present

Open khalibloo opened this issue 10 months ago • 0 comments

What version of Bun is running?

1.1.1

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What steps can reproduce the bug?

  1. Run bun install
  2. Delete node_modules
  3. Run bun install

What is the expected behavior?

Packages were already resolved and cached in the first install. Subsequent installs should not need to resolve the packages again. It should be instantaneous.

What do you see instead?

Subsequent installs still repeat the package resolution and take as much time as the first install. The caching of packages seemingly makes no difference. The folders inside node_modules do not appear to be symlinks either.

Additional information

On linux (KDE neon), the first install takes about 10s compared to 20s on Windows for the same project. Subsequent installs take mere milliseconds compared to 20s on Windows.

khalibloo avatar Apr 04 '24 21:04 khalibloo