-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Broken install binary on macOS #462
Comments
Have you tried stepping through the installation commands relevant to Mac? https://www.github.com/evanw/esbuild/tree/master/lib%2Finstall.ts There's a Library/Caches directory involved which might be a permission issue... Can you show the relevant npm logs |
There's no error when installing it, this is the output:
The yarn-error.log output is:
However, now saw the warning and the problem was with my npm config. I had Running |
Interesting, I wonder if esbuild's bin executable could just run install.ts instead of displaying an error about failing to install. Might be more streamlined for anyone else with ignore-scripts enabled. |
Thanks for the heads up about this.
I could see that working fine, but I could also see that causing other issues. I'm going to try making the error message mention |
It stopped working with vite
|
What does |
@heyheyhello nice random downvote |
You're not helping debug the issue. If you don't want to respond to questions or help find a solution then you can leave. It's not complicated ❤️ |
What are you talking about, I responded to a direct question. Your team members must loving working with you. |
Ok let's walk you through it 🙃 You've ran an npm command but are you using that as your package manager when you encountered the error? (This question was already asked). There have been specific issues with Yarn regarding the esbuild executable, so this is important to know. When you run the installation from your package manager, do you see output related to the post-install script that installs esbuild? (This question was already asked). Other people have been helpful in providing the output and debug information; you could share that too :) Some other questions: Is this reproducable? or a one time thing that was fixed after redoing the install. Have you tried to run the installation manually? Also, as a member of the Vite community, have you heard of other people having the issue? Thanks ☀️ |
That was uncalled for. Please keep the discussion to the issue you're having and free from personal remarks like this. |
Ok, and it's ok to tell random folk in discord As you can tell hehhey has 10x more time in the day to write then I do |
I'm getting the same problem and Version: 0.8.32 |
Oh interestingly, the problem goes away when not using npm v7. |
I can only get it working after first installing an older version. I think |
Maybe this info is useless, but just in case. When using I've asked the maintainer of |
same problem using npm in Mac it can be sloved by:
before |
I just experienced this as well. After a lot of debugging it turns out it was a bug in npm itself, which is now tracked here: npm/cli#2606. If you're having the same issue that I had, regenerating your |
got same problem here. already set ignore-scripts to false, still macOS failed to install esbuild when using npm @7.5.2, succeed after change npm to yarn. |
May have hit the same issue with npm but upgraded to 7.5.4 and things look good. |
Problem fixed, thank you :) |
this worked like a charm! thank you! |
I'm getting the same problem and ignore-scripts is also false. Version: 0.16.17 Running: node node_modules/esbuild/install.js Error: The "esbuild" package cannot be installed because macOS 10.12.6 is too outdated. The Go compiler (which esbuild relies on) no longer supports macOS 10.12.6,
|
I'm getting the same problem and ignore-scripts is also false. Version: 0.16.17 Running: node node_modules/esbuild/install.js Error: The "esbuild" package cannot be installed because macOS 10.12.6 is too outdated. The Go compiler (which esbuild relies on) no longer supports macOS 10.12.6, Update your version of macOS to one that the Go compiler supports |
I'm guessing this is a new bug since this project supports macOS (didn't test with older versions).
Running
yarn add -D esbuild
installs this package as expected, however this is the installed binary:System is macOS 10.15.7 (19H2), yarn v1.22.4, node v12.16.1
The text was updated successfully, but these errors were encountered: