Skip to content
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 takes extremely long time #4066

Closed
alyiev opened this issue Aug 8, 2023 · 73 comments · Fixed by #6192, #6206 or #10037
Closed

bun install takes extremely long time #4066

alyiev opened this issue Aug 8, 2023 · 73 comments · Fixed by #6192, #6206 or #10037
Labels
bug Something isn't working bun install Something that relates to the npm-compatible client

Comments

@alyiev
Copy link

alyiev commented Aug 8, 2023

What platform is your computer?

Darwin 22.6.0 arm64 arm

How did you attempt to install or upgrade?

bun install

What do you see instead?

bun install
bun install v0.7.3 (a9b3d58)

  • @babel/core@7.22.10
  • @babel/plugin-proposal-export-namespace-from@7.18.9
  • @tamagui/babel-plugin@1.50.2
  • @types/lodash-es@4.17.8
  • @types/ramda@0.28.25
  • @types/react@18.2.19
  • @types/uuid@9.0.2
  • babel-plugin-transform-inline-environment-variables@0.4.4
  • eslint@8.46.0
  • eslint-config-airbnb-typescript-prettier@5.0.0
  • eslint-import-resolver-alias@1.1.2
  • eslint-plugin-import@2.28.0
  • eslint-plugin-prettier@5.0.0
  • expo-dev-client@2.4.6
  • prettier@3.0.1
  • react-devtools@4.28.0
  • typescript@5.1.6
  • @expo-google-fonts/andika@0.2.3
  • @expo/vector-icons@13.0.0
  • @reduxjs/toolkit@1.9.5
  • @tamagui/animations-moti@1.50.2
  • @tamagui/animations-react-native@1.50.2
  • @tamagui/config@1.50.2
  • @tamagui/shorthands@1.50.2
  • @tamagui/themes@1.50.2
  • expo@49.0.6
  • expo-constants@14.4.2
  • expo-font@11.4.0
  • expo-linking@5.0.2
  • expo-location@16.1.0
  • expo-random@13.2.0
  • expo-router@2.0.0
  • expo-splash-screen@0.20.5
  • expo-status-bar@1.6.0
  • immer@10.0.2
  • lodash-es@4.17.21
  • ramda@0.28.0
  • react@18.2.0
  • react-dom@18.2.0
  • react-native@0.72.3
  • react-native-gesture-handler@2.12.1
  • react-native-get-random-values@1.8.0
  • react-native-maps@1.7.1
  • react-native-mmkv@2.10.1
  • react-native-reanimated@3.3.0
  • react-native-safe-area-context@4.6.3
  • react-native-screens@3.22.1
  • react-native-url-polyfill@1.3.0
  • react-native-web@0.19.7
  • react-redux@8.1.2
  • redux-persist@6.0.0
  • tamagui@1.50.2
  • zustand@4.4.1

1373 packages installed [2419.37s]
Internet connection is fine. yarn 3 took 30 sec(clean install)

Additional information

Trying to install those packages:

"dependencies": {
  "@expo-google-fonts/andika": "^0.2.3",
  "@expo/vector-icons": "^13.0.0",
  "@reduxjs/toolkit": "^1.9.5",
  "@tamagui/animations-moti": "^1.43.16",
  "@tamagui/animations-react-native": "^1.43.16",
  "@tamagui/config": "^1.43.16",
  "@tamagui/shorthands": "^1.43.16",
  "@tamagui/themes": "^1.43.16",
  "expo": "^49.0.6",
  "expo-constants": "~14.4.2",
  "expo-font": "~11.4.0",
  "expo-linking": "~5.0.2",
  "expo-location": "~16.1.0",
  "expo-random": "^13.1.1",
  "expo-router": "2.0.0",
  "expo-splash-screen": "~0.20.4",
  "expo-status-bar": "~1.6.0",
  "immer": "^10.0.2",
  "lodash-es": "^4.17.21",
  "ramda": "^0.28.0",
  "react": "18.2.0",
  "react-dom": "^18.2.0",
  "react-native": "0.72.3",
  "react-native-gesture-handler": "^2.9.0",
  "react-native-get-random-values": "~1.8.0",
  "react-native-maps": "1.7.1",
  "react-native-mmkv": "^2.10.1",
  "react-native-reanimated": "~3.3.0",
  "react-native-safe-area-context": "4.6.3",
  "react-native-screens": "~3.22.0",
  "react-native-url-polyfill": "^1.3.0",
  "react-native-web": "~0.19.6",
  "react-redux": "^8.1.1",
  "redux-persist": "^6.0.0",
  "tamagui": "^1.43.16",
  "zustand": "^4.3.6"
},
"devDependencies": {
  "@babel/core": "^7.20.0",
  "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
  "@tamagui/babel-plugin": "^1.43.16",
  "@types/lodash-es": "^4.17.7",
  "@types/ramda": "^0.28.23",
  "@types/react": "~18.2.14",
  "@types/uuid": "^9.0.1",
  "babel-plugin-transform-inline-environment-variables": "^0.4.4",
  "eslint": "^8.45.0",
  "eslint-config-airbnb-typescript-prettier": "^5.0.0",
  "eslint-import-resolver-alias": "^1.1.2",
  "eslint-plugin-import": "^2.28.0",
  "eslint-plugin-prettier": "5.0.0",
  "expo-dev-client": "^2.4.6",
  "prettier": "^3.0.0",
  "react-devtools": "^4.27.2",
  "typescript": "^5.1.3"
},
@alyiev alyiev added the bug Something isn't working label Aug 8, 2023
@Jarred-Sumner
Copy link
Collaborator

wow 2400 seconds is insane

@robobun robobun added the bun install Something that relates to the npm-compatible client label Aug 8, 2023
@choopk
Copy link

choopk commented Sep 12, 2023

same installing packages from a private repo took forever and failed, the installation was never complete for me after waiting for 2 hours

@Jarred-Sumner
Copy link
Collaborator

Jarred-Sumner commented Sep 12, 2023

This is likely a bug with our dns code

I'm sorry you waited two hours

@choopk
Copy link

choopk commented Sep 13, 2023

its a clean install. it queues up all the package and takes forever to process. But yarn install takes a min to complete
image

bun version used is 1.0.0

@omega1996
Copy link

same problem with docker and bun 1.0.2
image

@Brandoko
Copy link

Also had this issue on bun 1.0.0. Took 76.18s to install async-retry on MacOS 13.6.

bun add -d @types/async-retry

Screenshot 2023-09-23 at 12 23 02 PM

@Jarred-Sumner
Copy link
Collaborator

Please leave a comment if you continue to run into this after bun upgrade --canary

@choopk
Copy link

choopk commented Sep 30, 2023

still slow after bun upgrade --canary
image

@Jarred-Sumner
Copy link
Collaborator

Jarred-Sumner commented Sep 30, 2023

@choopk how long does it take with Yarn or npm or pnpm? If you pass bun install --no-cache does it get faster?

@choopk
Copy link

choopk commented Sep 30, 2023

with yarn clean install is about 49 sec.
image
bun install --no-cache didnt help

@Jarred-Sumner
Copy link
Collaborator

@choopk if you do rm -rf ~/.bun/install node_modules bun.lockb in your project, does that help?

@choopk
Copy link

choopk commented Sep 30, 2023

sadly no.

@Jarred-Sumner
Copy link
Collaborator

Please leave a comment if you still run into it

@KnockOutEZ
Copy link

KnockOutEZ commented Oct 5, 2023

Still running into it. For some reason it works really fast when I deploy it in Render But in local machine its taking eternity
image

@Electroid Electroid reopened this Oct 10, 2023
@Ychop
Copy link

Ychop commented Oct 19, 2023

Same here with bun 1.0.6, is there any update for this?

@sobhanessi
Copy link

I can also confirm that I have the same issue by running bun create next-app and it never ended! not sure whether it is from host or the bun's bug but I hope it gets fixed as soon as possible since we want to contribute to this project. thanks.

@sobhanessi
Copy link

alright one update, I tried with bunx create-next-app it worked and it was usual but not faster than yarn!
but I can confirm that bun update also is very slow in nextjs application to update packages. it's been running for more than an hour at the time of writing. hope to get fixed as soon as possible.

@rafaellehmkuhl
Copy link

Can confirm the same behavior here on 1.0.2. Upgraded to 1.0.7 but the issue persists.
The internet connection here is fine and yarn took less than a minute to install all.

image

@rafaellehmkuhl
Copy link

Update on this: changing my DNS to 8.8.8.8 (Google) solved the problem.

@Ychop
Copy link

Ychop commented Oct 31, 2023

Restarting my docker daemon did i it for me...

@sobhanessi

This comment was marked as off-topic.

@lukevinicius
Copy link

Same here with bun 1.0.16

Screenshot 2023-12-13 at 10 53 36

@Firgrep
Copy link

Firgrep commented Jun 26, 2024

Also getting very long install times here. Not even a docker container.

See details for dependencies

"dependencies": {
        "@emotion/styled": "^11.11.0",
        "@google-cloud/storage": "^7.11.1",
        "@googlemaps/js-api-loader": "^1.16.6",
        "@mapbox/mapbox-gl-draw": "^1.4.3",
        "@mdxeditor/editor": "^3.4.0",
        "@mui/icons-material": "^5.15.13",
        "@mui/lab": "^5.0.0-alpha.168",
        "@mui/material": "^5.15.13",
        "@mui/x-data-grid-pro": "^6.19.6",
        "@mui/x-date-pickers-pro": "^7.2.0",
        "@next/third-parties": "^14.2.1",
        "@prisma/client": "^5.11.0",
        "@stripe/react-stripe-js": "^2.6.2",
        "@stripe/stripe-js": "^3.2.0",
        "@tanstack/react-query": "^5.28.0",
        "@types/dompurify": "^3.0.5",
        "@types/jsonwebtoken": "^9.0.6",
        "@types/react-map-gl": "^6.1.6",
        "dayjs": "^1.11.10",
        "dompurify": "^3.1.5",
        "jsonwebtoken": "^9.0.2",
        "mapbox-gl": "^3.2.0",
        "material-ui-popup-state": "^5.0.9",
        "mui-file-input": "^4.0.4",
        "mui-markdown": "^1.1.13",
        "next": "^14.1.3",
        "nextjs-cors": "^2.2.0",
        "prism-react-renderer": "^2.3.1",
        "prisma": "^5.11.0",
        "react": "^18.2.0",
        "react-dom": "^18.2.0",
        "react-map-gl": "^7.1.7",
        "react-material-ui-carousel": "^3.4.2",
        "react-plotly.js": "^2.6.0",
        "react-share": "^5.1.0",
        "react-tweet": "^3.2.1",
        "server-only": "^0.0.1",
        "stripe": "^15.1.0",
        "supertokens-node": "^16.7.4",
        "supertokens-web-js": "^0.8.0",
        "ts-node": "^10.9.2",
        "use-supercluster": "^1.2.0",
        "uuid": "^9.0.1",
        "worker-loader": "^3.0.8",
        "zod": "^3.22.4"
    },
"devDependencies": {
        "@storybook/addon-essentials": "^8.0.0",
        "@storybook/addon-interactions": "^8.0.0",
        "@storybook/addon-links": "^8.0.0",
        "@storybook/addon-themes": "^8.0.0",
        "@storybook/blocks": "^8.0.0",
        "@storybook/nextjs": "^8.0.0",
        "@storybook/react": "^8.0.0",
        "@storybook/testing-library": "^0.2.2",
        "@tanstack/eslint-plugin-query": "^5.27.7",
        "@types/google.maps": "^3.55.4",
        "@types/leaflet": "^1.9.8",
        "@types/lodash.capitalize": "^4.2.9",
        "@types/lodash.debounce": "^4.0.9",
        "@types/lodash.isequal": "^4.5.8",
        "@types/mapbox__mapbox-gl-draw": "^1.4.6",
        "@types/mapbox-gl": "^3.1.0",
        "@types/node": "^20.11.27",
        "@types/react": "^18.2.65",
        "@types/react-dom": "^18.2.22",
        "@types/react-plotly.js": "^2.6.3",
        "@types/supercluster": "^7.1.3",
        "chromatic": "^11.0.8",
        "encoding": "^0.1.13",
        "eslint": "^8.57.0",
        "eslint-config-next": "^14.1.3",
        "eslint-config-prettier": "^9.1.0",
        "eslint-plugin-storybook": "^0.8.0",
        "husky": "^9.0.11",
        "lint-staged": "^15.2.2",
        "msw": "^1.3.2",
        "msw-storybook-addon": "^1.10.0",
        "storybook": "^8.0.0",
        "typescript": "^5"
    },

Took first 6 mins. Den ran bun upgrade --canary and now it took 3 mins. npm used 20secs.

@itsjustjo96
Copy link

itsjustjo96 commented Jul 2, 2024

Same for me sadly when running this simple command bun create expo webapp under MacOS Sonoma. The first steps takes several minutes already and I didn't make it past step 6 which by then already took around 15-20mins.

image

Interestingly upgrading to the canary version bun upgrade --canary and restarting the mac also helped with my issue and now it's blazingly fast again!

@tridge
Copy link

tridge commented Jul 16, 2024

"bun install" on this project took 10 hours for me before I gave up:
https://github.com/am32-firmware
ubuntu 22.04, node 20.15.1, bun 1.1.20

@benhancock-com
Copy link

Confirming this still appears to be an issue.

Running bun install --frozen-lockfile --production in my dockerfile takes over 4 minutes to complete.

Running bun 1.1.21 on macOS arm64.

@yairyairyair
Copy link

+1 still relevant,
using oven/bun:1.1.24-alpine

@yairyairyair
Copy link

I think i found the bug, usually people do
COPY package*.json ./
and dont copy the bun.lockb

i changed it to

COPY package.json bun.lockb ./

and now it works

@Jarred-Sumner
Copy link
Collaborator

yeah if you're not copying a lockfile, it's going to have to re-resolve everything and that takes time

@a3l6
Copy link

a3l6 commented Aug 16, 2024

Having this exact same issue here with only these packages

"devDependencies": {
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.20.4",
"@types/chrome": "^0.0.243",
"@types/node": "^20.3.2",
"@types/zxcvbn": "^4.4.1",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"autoprefixer": "^10.4.14",
"daisyui": "^3.1.6",
"eslint": "^8.28.0",
"eslint-plugin-svelte": "^2.30.0",
"postcss": "^8.4.24",
"svelte": "^4.0.0",
"svelte-check": "^3.4.3",
"sveltekit-adapter-chrome-extension": "^2.0.0",
"tailwindcss": "^3.3.2",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^4.3.6"
},
"type": "module",
"dependencies": {
"@macfja/svelte-persistent-store": "^2.3.1",
"@sveu/browser": "^0.20.0",
"@types/bytebuffer": "^5.0.44",
"@types/dom-view-transitions": "^1.0.5",
"browserify-zlib": "^0.2.0",
"buffer": "^6.0.3",
"bytebuffer": "^5.0.1",
"events": "^3.3.0",
"process": "^0.11.10",
"stream-browserify": "^3.0.0",
"util": "^0.12.5",
"fast-sha256": "^1.1.0",
"tweetnacl-util": "^0.15.0",
"vite-plugin-require": "^1.1.10",
"zxcvbn": "^4.4.2"
}

@Robert27
Copy link

Robert27 commented Aug 16, 2024

Same here, I’m using bun install on Xcode Cloud: Stuck / Timout.
Obviously I can’t change any DNS settings.

@wladpaiva
Copy link

Tried with and without the bun.lockb. Either way are overpassing 50min for me. Only inside the docker. On the m2 is working fine

@tpSpace
Copy link

tpSpace commented Aug 23, 2024

For me, changing my DNS server actually resolved the problem!

It works for me too. I turn off cloudfare 1.1.1.1 and it works like a champ.

@Shiwa
Copy link

Shiwa commented Sep 9, 2024

I encountered a similar issue with bun getting stuck on the resolve phase. I tried the "disable ipv6" fix but it did not work. Then I noticed i didn’t get the problem when running the install from the webstorm notification…

It turns out bun install is fast (~500ms) when launched from bash, but slooooow (>30s, killed the process) when launched from the fish shell. No idea why. I’m on ubuntu 22, no docker.

PS: my fish shell is launched from my .bashrc, if that may help

@chlorine3545
Copy link

Here it continues to bother me.
Just 4 packages, it took 10min to install, while npm was 3s.
macOS Sonoma, Zsh, bun 1.1.27.

@vincehi
Copy link

vincehi commented Sep 24, 2024

same for me 😅 => 411s
image

@chardoncs
Copy link

chardoncs commented Sep 26, 2024

Same here. It doesn't always happen, but sometimes might take a very long time then timeout.

@choopk if you do rm -rf ~/.bun/install node_modules bun.lockb in your project, does that help?

Welp... this works 😅

@nemanjamitric
Copy link

Tried everything in the thread. bun install on v1.1.29 still not working on arm64 macbook

@chlorine3545
Copy link

After updating my system to macOS Sequoia and Bun to version 1.1.29, the situation has worsened. Since I rely on Bun as my primary JavaScript runtime, this issue is incredibly frustrating!

@alyiev
Copy link
Author

alyiev commented Sep 28, 2024

@Jarred-Sumner hi, maybe it's a good time to re-open issue and fix it? People still facing it

@jhokam
Copy link

jhokam commented Sep 29, 2024

image

i got same problem when using bun, but trying to use npm that work

@irvile
Copy link

irvile commented Sep 30, 2024

when I encounter this issue, I just turn the Wi-Fi off and on, and it works.

I first experienced this a long time ago, but with version 1.1.29, it happened again once.

By the way, I'm using macOS Sonoma.

@chardoncs
Copy link

chardoncs commented Oct 2, 2024

Here is part of the debug info about running Bun 1.1.30-debug to install dependencies for a newly created SvelteKit project. I'm trying addressing the issue, but I don't have any guarantees 😬

  🔍 typescript [9/19] [SYS] write(7[/home/chardon/.bun/install/cache/#75636696 (deleted)], 1159280) = 1159280 0.600ms
[SYS] unlinkat(15[/home/chardon/.bun/install/cache], 6265852b2c80259f.npm) = 0
[SYS] close(7[/home/chardon/.bun/install/cache/#75636696 (deleted)])
[alloc] destroy(SaveTask) = src.install.npm.PackageManifest.Serializer.saveAsync.SaveTask@2000e2a05c0
  🔍 typescript [9/19] [fetch] Timeout  https://registry.npmjs.org/vite
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@20002cd8800
[fetch] onAsyncHTTPCallback: 5m11.569ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@2000231ac00
[uws] us_socket_close(133216329583360)
  🔍 vite [10/20] [fetch] Timeout  https://registry.npmjs.org/svelte-check
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@20002cd0e80
[fetch] onAsyncHTTPCallback: 5m22.224ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002318800
[uws] us_socket_close(133216329583072)
[fetch] Timeout  https://registry.npmjs.org/svelte
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@200026de500
[fetch] onAsyncHTTPCallback: 5m30.699ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002317c00
[uws] us_socket_close(133216329582976)
[fetch] Timeout  https://registry.npmjs.org/prettier-plugin-svelte
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@200026dbc80
[fetch] onAsyncHTTPCallback: 5m40.34ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002317000
[uws] us_socket_close(133216329582880)
[fetch] Timeout  https://registry.npmjs.org/prettier
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@200026d9400
[fetch] onAsyncHTTPCallback: 5m52.229ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002316400
[uws] us_socket_close(133216329582784)
[fetch] Timeout  https://registry.npmjs.org/eslint-plugin-svelte
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@200026d4300
[fetch] onAsyncHTTPCallback: 5m61.59ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002314c00
[uws] us_socket_close(133216329582592)
[fetch] Timeout  https://registry.npmjs.org/eslint
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@200026d1a80
[fetch] onAsyncHTTPCallback: 5m71.275ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002314000
[uws] us_socket_close(133216329582496)
  🔍 eslint [16/26] [fetch] Timeout  https://registry.npmjs.org/@types%2feslint
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@2000216f100
[fetch] onAsyncHTTPCallback: 5m80.264ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002313400
[uws] us_socket_close(133216329582400)
[fetch] Timeout  https://registry.npmjs.org/@sveltejs%2fvite-plugin-svelte
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@2000216c880
[fetch] onAsyncHTTPCallback: 5m89.888ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002310400
[uws] us_socket_close(133216329582304)
[fetch] Timeout  https://registry.npmjs.org/@sveltejs%2fkit
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@2000216a000
[fetch] onAsyncHTTPCallback: 5m99.474ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002311000
[uws] us_socket_close(133216329582208)
[fetch] Timeout  https://registry.npmjs.org/@sveltejs%2fadapter-auto
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@20002167780
[fetch] onAsyncHTTPCallback: 5m113.508ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002312800
[uws] us_socket_close(133216329582112)
[alloc] new(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002312800
[uws] connect(127.0.0.1, 7890)
[alloc] new(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002311000
[uws] connect(127.0.0.1, 7890)
[alloc] new(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002310400
[uws] connect(127.0.0.1, 7890)
[alloc] new(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002313400
[uws] connect(127.0.0.1, 7890)
[fetch] Processed 4 tasks
[fetch] Connected https://registry.npmjs.org/vite
[uws] us_socket_write(*anyopaque@7, 103) = 103
[fetch] Connected https://registry.npmjs.org/svelte-check
[uws] us_socket_write(*anyopaque@e, 103) = 103
[fetch] Connected https://registry.npmjs.org/svelte
[uws] us_socket_write(*anyopaque@12, 103) = 103
[fetch] Connected https://registry.npmjs.org/prettier-plugin-svelte
[uws] us_socket_write(*anyopaque@13, 103) = 103
[fetch] onData 39
[alloc] new(ProxyTunnel) = src.http.ProxyTunnel@20002167780
[uws] us_socket_write(*anyopaque@7, 537) = 537
[fetch] onData 39
[alloc] new(ProxyTunnel) = src.http.ProxyTunnel@2000216a000
[uws] us_socket_write(*anyopaque@e, 517) = 517
[fetch] onData 39
[alloc] new(ProxyTunnel) = src.http.ProxyTunnel@2000216c880
[uws] us_socket_write(*anyopaque@12, 517) = 517
[fetch] onData 39
[alloc] new(ProxyTunnel) = src.http.ProxyTunnel@2000216f100
[uws] us_socket_write(*anyopaque@13, 517) = 517
[fetch] onData 3034
[uws] us_socket_write(*anyopaque@e, 93) = 93
[fetch] onData 3036
[uws] us_socket_write(*anyopaque@7, 93) = 93
[fetch] onData 3034
[uws] us_socket_write(*anyopaque@12, 93) = 93
[fetch] onData 3035
[uws] us_socket_write(*anyopaque@13, 93) = 93
  🔍 @sveltejs/adapter-auto [20/30] [fetch] onData 258
[uws] us_socket_write(*anyopaque@e, 310) = 310
[fetch] onData 258
[uws] us_socket_write(*anyopaque@7, 302) = 302
[fetch] onData 258
[uws] us_socket_write(*anyopaque@13, 320) = 320
[fetch] onData 258
[uws] us_socket_write(*anyopaque@12, 304) = 304
[fetch] onData 380
[fetch] onData decoded 351
[fetch] handleResponseMetadata: content_length is null and transfer_encoding src.http.Encoding.identity
[fetch] onData 379
[fetch] onData decoded 350
[fetch] handleResponseMetadata: content_length is null and transfer_encoding src.http.Encoding.identity
[fetch] onData 380
[fetch] onData decoded 351
[fetch] handleResponseMetadata: content_length is null and transfer_encoding src.http.Encoding.identity
[fetch] onData 379
[fetch] onData decoded 350
[fetch] handleResponseMetadata: content_length is null and transfer_encoding src.http.Encoding.identity

@Jarred-Sumner
Copy link
Collaborator

cc @cirospaciari , looks like it's related to proxy tunnel

Here is part of the debug info about running Bun 1.1.30-debug to install dependencies for a newly created SvelteKit project. I'm trying addressing the issue, but I don't have any guarantees 😬

  🔍 typescript [9/19] [SYS] write(7[/home/chardon/.bun/install/cache/#75636696 (deleted)], 1159280) = 1159280 0.600ms
[SYS] unlinkat(15[/home/chardon/.bun/install/cache], 6265852b2c80259f.npm) = 0
[SYS] close(7[/home/chardon/.bun/install/cache/#75636696 (deleted)])
[alloc] destroy(SaveTask) = src.install.npm.PackageManifest.Serializer.saveAsync.SaveTask@2000e2a05c0
  🔍 typescript [9/19] [fetch] Timeout  https://registry.npmjs.org/vite
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@20002cd8800
[fetch] onAsyncHTTPCallback: 5m11.569ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@2000231ac00
[uws] us_socket_close(133216329583360)
  🔍 vite [10/20] [fetch] Timeout  https://registry.npmjs.org/svelte-check
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@20002cd0e80
[fetch] onAsyncHTTPCallback: 5m22.224ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002318800
[uws] us_socket_close(133216329583072)
[fetch] Timeout  https://registry.npmjs.org/svelte
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@200026de500
[fetch] onAsyncHTTPCallback: 5m30.699ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002317c00
[uws] us_socket_close(133216329582976)
[fetch] Timeout  https://registry.npmjs.org/prettier-plugin-svelte
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@200026dbc80
[fetch] onAsyncHTTPCallback: 5m40.34ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002317000
[uws] us_socket_close(133216329582880)
[fetch] Timeout  https://registry.npmjs.org/prettier
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@200026d9400
[fetch] onAsyncHTTPCallback: 5m52.229ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002316400
[uws] us_socket_close(133216329582784)
[fetch] Timeout  https://registry.npmjs.org/eslint-plugin-svelte
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@200026d4300
[fetch] onAsyncHTTPCallback: 5m61.59ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002314c00
[uws] us_socket_close(133216329582592)
[fetch] Timeout  https://registry.npmjs.org/eslint
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@200026d1a80
[fetch] onAsyncHTTPCallback: 5m71.275ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002314000
[uws] us_socket_close(133216329582496)
  🔍 eslint [16/26] [fetch] Timeout  https://registry.npmjs.org/@types%2feslint
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@2000216f100
[fetch] onAsyncHTTPCallback: 5m80.264ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002313400
[uws] us_socket_close(133216329582400)
[fetch] Timeout  https://registry.npmjs.org/@sveltejs%2fvite-plugin-svelte
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@2000216c880
[fetch] onAsyncHTTPCallback: 5m89.888ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002310400
[uws] us_socket_close(133216329582304)
[fetch] Timeout  https://registry.npmjs.org/@sveltejs%2fkit
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@2000216a000
[fetch] onAsyncHTTPCallback: 5m99.474ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002311000
[uws] us_socket_close(133216329582208)
[fetch] Timeout  https://registry.npmjs.org/@sveltejs%2fadapter-auto
[alloc] destroy(ProxyTunnel) = src.http.ProxyTunnel@20002167780
[fetch] onAsyncHTTPCallback: 5m113.508ms
[alloc] destroy(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002312800
[uws] us_socket_close(133216329582112)
[alloc] new(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002312800
[uws] connect(127.0.0.1, 7890)
[alloc] new(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002311000
[uws] connect(127.0.0.1, 7890)
[alloc] new(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002310400
[uws] connect(127.0.0.1, 7890)
[alloc] new(ThreadlocalAsyncHTTP) = src.http.ThreadlocalAsyncHTTP@20002313400
[uws] connect(127.0.0.1, 7890)
[fetch] Processed 4 tasks
[fetch] Connected https://registry.npmjs.org/vite
[uws] us_socket_write(*anyopaque@7, 103) = 103
[fetch] Connected https://registry.npmjs.org/svelte-check
[uws] us_socket_write(*anyopaque@e, 103) = 103
[fetch] Connected https://registry.npmjs.org/svelte
[uws] us_socket_write(*anyopaque@12, 103) = 103
[fetch] Connected https://registry.npmjs.org/prettier-plugin-svelte
[uws] us_socket_write(*anyopaque@13, 103) = 103
[fetch] onData 39
[alloc] new(ProxyTunnel) = src.http.ProxyTunnel@20002167780
[uws] us_socket_write(*anyopaque@7, 537) = 537
[fetch] onData 39
[alloc] new(ProxyTunnel) = src.http.ProxyTunnel@2000216a000
[uws] us_socket_write(*anyopaque@e, 517) = 517
[fetch] onData 39
[alloc] new(ProxyTunnel) = src.http.ProxyTunnel@2000216c880
[uws] us_socket_write(*anyopaque@12, 517) = 517
[fetch] onData 39
[alloc] new(ProxyTunnel) = src.http.ProxyTunnel@2000216f100
[uws] us_socket_write(*anyopaque@13, 517) = 517
[fetch] onData 3034
[uws] us_socket_write(*anyopaque@e, 93) = 93
[fetch] onData 3036
[uws] us_socket_write(*anyopaque@7, 93) = 93
[fetch] onData 3034
[uws] us_socket_write(*anyopaque@12, 93) = 93
[fetch] onData 3035
[uws] us_socket_write(*anyopaque@13, 93) = 93
  🔍 @sveltejs/adapter-auto [20/30] [fetch] onData 258
[uws] us_socket_write(*anyopaque@e, 310) = 310
[fetch] onData 258
[uws] us_socket_write(*anyopaque@7, 302) = 302
[fetch] onData 258
[uws] us_socket_write(*anyopaque@13, 320) = 320
[fetch] onData 258
[uws] us_socket_write(*anyopaque@12, 304) = 304
[fetch] onData 380
[fetch] onData decoded 351
[fetch] handleResponseMetadata: content_length is null and transfer_encoding src.http.Encoding.identity
[fetch] onData 379
[fetch] onData decoded 350
[fetch] handleResponseMetadata: content_length is null and transfer_encoding src.http.Encoding.identity
[fetch] onData 380
[fetch] onData decoded 351
[fetch] handleResponseMetadata: content_length is null and transfer_encoding src.http.Encoding.identity
[fetch] onData 379
[fetch] onData decoded 350
[fetch] handleResponseMetadata: content_length is null and transfer_encoding src.http.Encoding.identity

@ekorian
Copy link

ekorian commented Oct 2, 2024

Issue is still up

@KieranP
Copy link

KieranP commented Oct 3, 2024

Encountering the same issue. Since upgrading to Sonoma, bun install, bun add, or other similar operations are taking many orders of magnitude longer than they should. Would be great to have a fix for this in next release.

@nvcnvn
Copy link

nvcnvn commented Oct 6, 2024

I'm using Cloudflare Warp on Ubuntu, need to disable it to make it work.

@mancuoj
Copy link

mancuoj commented Oct 9, 2024

❯ npx @mancuoj/prettier-config
Need to install the following packages:
@mancuoj/prettier-config@0.2.0
Ok to proceed? (y) 

Installing required packages: prettier, @mancuoj/prettier-config
bun add v1.1.30 (7996d06b)

installed prettier@3.3.3 with binaries:
 - prettier
installed @mancuoj/prettier-config@0.2.0 with binaries:
 - prettier-config

14 packages installed [60.66s]
✔ Prettier setup successfully!

still exist on macOS15, can someone check it?

@marvinfok
Copy link

marvinfok commented Oct 10, 2024

My first time doing a bun expo app installation. Was very slow on a Macbook arm64 Ventura 13.6. What can be the issue?

Update: Issue solved by upgrading to canary.

@chardoncs
Copy link

chardoncs commented Oct 14, 2024

I just tried Bun compiled from the main branch, it still exists.

Btw update seems not affected, only install and add. Is there any difference between the fetching of update and install/add?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bun install Something that relates to the npm-compatible client
Projects
None yet