-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 fails to install esbuild binary #6176
Comments
esbuild needs options like btw, it can run in my MacOS. 1.0.3 Have you added the bun/bin into PATH? |
Arguments for
Output:
|
The path |
There is also an issue with Go NPM that might be related. npm:
Bun:
|
might relate to this #6138 |
executing
UPDATE: I'll add more information:
envinfo:
|
I fixed this problem by changing my node from 14 to 18 using proto, and allowing npm through |
Yes, I am using Node 18. I believe there were some fundamental changes for Node 18 (and 16?) which is the version decided to make support on MacOS M1 M2 chips. And then esbuild in some versions started to drop the support for Node 14 and going to 18. But it is wried, node should not be the dependency when bun is used. |
try adding |
That is in improvement with Bun v1.0.4 but still mixes architectures, unlike npm:
npm:
Bun v1.0.4:
Bun v1.0.4 with
|
"trustedDependencies": [ I still have to manually trigger post install and install scripts of these 3, the trustedDaependencies is not doing anything Mind providing a disable flag of this "feature" on the bun config, please? it is clear is not ready |
this is working for me in I had to make sure I was running the ARM version of
|
@AcBerk Thank you so much. Its work for me. |
Same issues with trying to use shopify-cli, where it fails to install the binaries for cloudfront altogether, even if you add it to trustedDependencies. Haven't found a fix. The post install scripts try to execute some commands via node, probably related but haven't manage to spend time debugging yet. Maybe some aliasing of node to bun could work around a good chunk of issues. |
@salomartin Do you use |
given that i'm unable to reproduce this behavior even with the version of Bun listed in the original post, i'm leaning towards this being an architecture/rosetta mismatch issue and not something on Bun's side
am currently wrestling with rosetta to see if i can reproduce using x86 bun on arm mac but atm i think @alexcberk's solution is the right one. if anyone is still able to reproduce this using arm bun on arm mac please let us know |
What version of Bun is running?
1.0.3
What platform is your computer?
Darwin 23.0.0 arm64 arm
What steps can reproduce the bug?
What is the expected behavior?
The
esbuild
binary to be executed.What do you see instead?
The following message:
Additional information
Using
npm
orpnpm
results in a compiled binary atnode_modules/esbuild/bin/esbuild
but with Bun this is just a JavaScript file.Based on evanw/esbuild#3398 (comment) it doesn't seem to be an esbuild issue.
The text was updated successfully, but these errors were encountered: