oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
71.77k stars 2.55k forks source link

Closed downloading package manifest [package] #11471

Open KodeurKubik opened 1 month ago

KodeurKubik commented 1 month ago

What version of Bun is running?

1.1.10+5102a9443

What platform is your computer?

Darwin 23.4.0 arm64 arm

What steps can reproduce the bug?

It just happens to me, stable internet and quite fast. I have no idea how to reproduce on someone else's computer though.

bun install [package] gives output:

bun add v1.1.10 (5102a944)
  🔍 express [6/6] 
error: ConnectionClosed downloading package manifest express
error: express@ failed to resolve

tested on express, vite, discord.js with bun i, install and add

To note: this happens when I try to :

What is the expected behavior?

Expected, just install the packages.

What do you see instead?

No response

Additional information

No response

smaccoun commented 3 weeks ago

This is has been happening to me for about 5 days now. I finally found a workaround, which was to simply downgrade to bun v1.0.9. Also it happens even in a brand new fresh repo using bun init for for any version of bun 1.1.10 or higher

Workaround: curl -fsSl https://bun.sh/install | bash -s "bun-v1.0.9"

Here's everything i tried fwiw

SETUP

  1. Darwin 23.5.0 arm64 arm
  2. Bun - 1.1.12+43f0913c3

ATTEMPTS

  1. rm -rf node_modules && rm bun.lockb && bun install
  2. rm -rf ~/.bun && curl -fsSL https://bun.sh/install | bash
  3. bun upgrade --canary
  4. Mixing all of the above
Jarred-Sumner commented 3 weeks ago

I think this is a duplicate of https://github.com/oven-sh/bun/issues/11423#issuecomment-2158485243

But I really wish there was a way to reproduce this or what the cause is.

smaccoun commented 3 weeks ago

Agreed it's a duplicate of that. I also wish there was a way to replicate it. I'll post some more info there