oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager ā€“ all in one
https://bun.sh
Other
74.11k stars 2.77k forks source link

Can't install `@types/bun` #13947

Closed KyleFontenot closed 1 month ago

KyleFontenot commented 1 month ago

What version of Bun is running?

1.1.27+267afa293

What platform is your computer?

Linux 5.4.0-163-generic x86_64 x86_64

What steps can reproduce the bug?

Running bun a -d @types/bun

What is the expected behavior?

Installing the @types/bun dep correctly.

What do you see instead?

Loaded 1193 hoisted_dependencies
Loaded 2206 resolutions
Loaded 2206 dependencies
Loaded 8 extern_strings
Loaded 94846 string_bytes
Enqueue package manifest for download: @types/bun
  šŸ” Resolving [1/3] [fetch] > HTTP/1.1 GET https://registry.npmjs.org/@types%2fbun
[fetch] > If-None-Match: W/"ff6ff9f31a0ec367d733e9a17425c41e2"
[fetch] > Accept: application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*
[fetch] > Connection: keep-alive
[fetch] > User-Agent: Bun/1.1.27
[fetch] > Host: registry.npmjs.org
[fetch] > Accept-Encoding: gzip, deflate, br

[fetch] < 200 Connection established

[fetch] < 304 Not Modified
[fetch] < Date: Fri, 13 Sep 2024 14:30:43 GMT
[fetch] < Connection: keep-alive
[fetch] < CF-Ray: 8c28d6388e9396c0-SJC
[fetch] < CF-Cache-Status: HIT
[fetch] < Access-Control-Allow-Origin: *
[fetch] < Age: 30
[fetch] < Cache-Control: public, max-age=300
[fetch] < ETag: "ff6ff9f31a0ec367d733e9a17425c41e2"
[fetch] < Last-Modified: Mon, 09 Sep 2024 21:36:25 GMT
[fetch] < Vary: Accept-Encoding
[fetch] < Server: cloudflare

[PackageManager] waiting for 1 tasks
  šŸ” Resolving [3/3] [PackageManager] waiting for 1 tasks
  šŸ” Resolving [3/3] [PackageManager] waiting for 1 tasks
  šŸ” Resolving [3/3] [PackageManager] waiting for 1 tasks
  šŸ” Resolving [3/3] [PackageManager] waiting for 1 tasks
[PackageManager] waiting for 1 tasks
  šŸ” Resolving [3/3] [PackageManager] waiting for 1 tasks
  šŸ” Resolving [3/3] [PackageManager] waiting for 1 tasks
  šŸ” Resolving [3/3] [PackageManager] waiting for 1 tasks
  šŸ” Resolving [3/3] [PackageManager] waiting for 1 tasks
  .........

Infinitely.

Additional information

I don't have problems installing other deps. When I try adding that type package in particular, it chokes. I'm behind a proxy, though I've configured it to work otherwise. I'm guessing it's a ipv6 issue? But not sure why other packages work even after clearing cache. Maybe just a cloudflare outage?

KyleFontenot commented 1 month ago

Nevermind. Think it was maybe just timing out on my slower connection. When I cleared the global cache and re-installed, it got caught up the exact same way as above on a different package. just had to run bun i again about 3 times for it to chug through. The bun a -d @types/bun command worked perfectly after. Before, when I tried bun a -d @types/bun initially, I ran it many more than 3 times, so I don't know why the cache or timeout got tripped up.