-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bun install/create fails with error: ConnectionRefused downloading package manifest #4988
Comments
I'm having the same issue with > bun --version
1.0.1 > time bun install
bun install v1.0.1 (31aec4eb)
🔍 bun-types [6/6]
error: ConnectionRefused downloading package manifest bun-types
error: bun-types@latest failed to resolve
________________________________________________________
Executed in 450.16 secs fish external
usr time 23.79 millis 6.70 millis 17.09 millis
sys time 34.56 millis 2.89 millis 31.67 millis it took more than 7 minutes to get to this error I'm running it on a M1 mac:
I assume this is caused by ipv6. |
For me it immediately trows this error. I have a working Internet connection. $ bun upgrade
bun v1.0.1 is out! You're on 1.0.0
[20.71s] Upgraded.
Welcome to bun v1.0.1!
Report any bugs:
https://github.com/oven-sh/bun/issues
What's new:
https://github.com/oven-sh/bun/releases/tag/bun-v1.0.1
Changelog:
https://github.com/oven-sh/bun/compare/bun-v1.0.0...bun-v1.0.1 $ time bun install
bun install v1.0.1 (31aec4eb)
🔍 bun-types [11/12]
error: ConnectionRefused downloading package manifest bun-types
🔍 figlet [12/12]
error: ConnectionRefused downloading package manifest figlet
error: bun-types@latest failed to resolve
error: figlet@^1.6.0 failed to resolve
bun install 0.02s user 0.02s system 38% cpu 0.100 total |
Having this problem in an M1 mac using 1.0.1 too, but it does work if I set IPv6 to link-local only. |
I am not sure how to configure IPv6 to link-local only on linux.
|
same problem with 1.0.2 |
I got this when I ran `bun install v1.0.3 (25e69c7) real 1m5.533s |
Fixed by this: https://wiki.archlinux.org/title/IPv6#Disable_IPv6 # /etc/sysctl.d/40-ipv6.conf
# Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1 Then run |
So yes, disabling or preferring IPv4 is the correct solution. Here's the process for WSL: Open this Either add or uncomment this line Tap Esc key and then type N.B.: This will PREFER IPv4 not necessarily turn IPv6 off. |
Can confirm this is an issue on bun 1.0.21. |
might be related. I get this while trying to The error is slightly different to above I tried disabling IPv6 as best I could but wasn't able to move forward |
I'm also getting the same error on an old intel mac bun 1.0.21
I set ipv6 to link-local only, but that didn't work. |
Hi, Same here on a Macbook pro Mid 2014 (Intel) and MacOS Big Sur 11.7.10. This is specific to Bun v1.0.21, it works well on v1.0.20: bun add v1.0.21 (837cbd60)
🔍 cowsay [6/6]
error: failed to initialize compression stream downloading package manifest cowsay
error: cowsay@ failed to resolve
cd ..
rm -rf .bun
curl -fsSL https://bun.sh/install | bash -s "bun-v1.0.20"
######################################################################## 100.0%
bun was installed successfully to ~/.bun/bin/bun
Run 'bun --help' to get started
cd quickstart
bun install cowsay
bun add v1.0.20 (09d51486)
+ @types/bun@1.0.0
installed cowsay@1.5.0 with binaries:
- cowsay
- cowthink
36 packages installed [1.52s] |
Other thread on the same issue there: |
yes, it's the IPV6 problem. |
Same "failed to initialize compression stream downloading package manifest xxx" error on macbook intel Big Sur. No issue on MacBook arm Sonoma |
Is there any way to solve it? I also encountered such a problem |
Check my link on Discord, you can set an environment variable in front of
“bun install”
…On Tue, Jan 9, 2024 at 12:59 杨老汉儿 ***@***.***> wrote:
Is there any way to solve it? I also encountered such a problem
—
Reply to this email directly, view it on GitHub
<#4988 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AME24I4THPRJ66DRNHRNJY3YNUWIPAVCNFSM6AAAAAA4TYRD46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBSHE2DCNRWGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
BUN_DISABLE_COMPRESSION_FRAMEWORK=1 bun install
On Tue, Jan 9, 2024 at 13:13 Baptiste Clarey Sjöstrand <
***@***.***> wrote:
… Check my link on Discord, you can set an environment variable in front of
“bun install”
On Tue, Jan 9, 2024 at 12:59 杨老汉儿 ***@***.***> wrote:
> Is there any way to solve it? I also encountered such a problem
>
> —
> Reply to this email directly, view it on GitHub
> <#4988 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AME24I4THPRJ66DRNHRNJY3YNUWIPAVCNFSM6AAAAAA4TYRD46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBSHE2DCNRWGA>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
disabling ipv6 is not a solution. |
Any update on this? Issue still persists with v1.1.0 even when IPV6 disabled or env var passed. I am on macOS 14.3 M1 Max. |
I encountered the issue while trying to download the package manifest for the create-astro package in Bun and Astro. The error message Additionally, I faced a similar problem when trying to create a React app using the command I performed these attempts within a Docker environment using the following Dockerfile and Docker Compose configuration: Dockerfile: FROM oven/bun:latest
WORKDIR /app
RUN bunx create-astro@latest app --yes
USER bun
EXPOSE 4321/tcp
ENTRYPOINT ["tail", "-f", "/dev/null"] Docker Compose: version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "4321:4321"
volumes:
- ./app:/app It seems that the issue arises specifically when trying to download the package manifest and resolve dependencies within the Docker environment. The create-astro and React app creation commands fail to resolve dependencies properly, resulting in the mentioned errors. I would appreciate any guidance or assistance in resolving this issue to successfully create Astro and React projects within the Docker environment using Bun. |
I am using a proxy on MacOS. The origin config is:
Another tools works well but Bun does not. I change the |
Looking for a solution for this as well |
It worked for me when I disabled the global cache. (It might be that I have invalid entries in my global cache?) I added this to mu bunfig.toml file: [install.cache]
# when true, don't load from the global cache.
# Bun may still write to node_modules/.cache
disable = true
# when true, always resolve the latest versions from the registry
disableManifest = false |
I'm getting this issue, too. Never encountered a package manager where downloading is such a problem... |
I got this issue in this couple of days when I use bunx command |
What version of Bun is running?
1.0.0+350403663e5ece8b1d09adce3a3594f8e05bf8f1
What platform is your computer?
Linux 6.5.2-zen1-1-zen x86_64 unknown
What steps can reproduce the bug?
bun init
bun install
or
What is the expected behavior?
Should install packages from package.jdon
What do you see instead?
Additional information
The text was updated successfully, but these errors were encountered: