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
Feature request: prebuilt module for darwin/arm64 (Apple M1) #118
Comments
I'm interested in this. I just got an M1 machine and can't build my electron project. I'm happy to help where I can on investigating this or pre-building a binary on my machine. |
+1 on this, I'm also unable to compile electron projects on a new iMac. |
Please don't add comments like this, that just spams folks who are subscribed to the issue. Instead use the 👍 reaction on the main issue, that will give a better indication of the number of people affected without the unnecessary notifications. |
Do any of you happen to have the homebrew GNU coreutils added to your I ask because I was investigating this yesterday to see if I could contribute a fix since it appeared like it should work since it uses node-gyp so even if a pre-built binary doesn't exist it should build it. Eventually during my investigation I realized that my GNU coreutils overrides were causing the issue. Removing them from my In case you need a reminder, the coreutils that come with macOS are BSD-variant vs the GNU coreutils one is more likely to find on Linux systems, so sometimes people install the Overriding the coreutils is called out as a potentially dangerous thing to do for reasons like we are experiencing here: it could be that some scripts assume the BSD variants to be present on macOS, maybe they detect that they are on macOS so they use slightly different invocations of programs expecting them to be the BSD variants, or with different assumed behaviors/outcomes. Anyway, it might be useful for you all to check and try building it again with It worked for me to build this package, but also I went back to my electron app that transitively depends on this via electron-rebuild and (notably) removed I'm going to have to figure out what the best path forward may be for the use of GNU coreutils on mac, in terms of ergonomics and safety with respect to breaking other apps, but at least it seems (for me at least) that this was the culprit here. |
Thanks blaenk! Two things on note:
|
Hello, I was wondering what's the status of this issue? I can't install |
Any updates on this? I am using M1 and can't build |
@QuiiBz @AngryPowman did you check if by any chance you were experiencing what I described? I'm fully able to build this and by extension @MaLIE2018 @MattBarkway you're all still running into issues? Aside from the coreutils issue which I explained, you should be able to build just fine. |
Yes, I tried but that didn't work. I had to manually run this command to rebuild |
Maybe you would like to share your And like the rest of you, I'm also talking about |
I solved it by installing node with x64 architecture on mac with m1 chip. |
Ah okay got it. I think some of us are interested in having native M1 builds so just installing x64 node and using Rosetta wasn't really an option. Glad it works for you though. |
This isn't really a solution - and currently doesn't even work: electron/electron#32266 |
The real solution would be to provide prebuilt binaries for Darwin arm64. I’ll certainly make a fork if this doesn’t happen in this repo, because I think it’s a blocker for many people (including me). |
Since more developers are starting to use Apple M1s for their development machines, it'd be great if there was a prebuilt binary for
darwin-arm64
in addition todarwin-x64
.The text was updated successfully, but these errors were encountered: