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

Build from source on apple silicon, as long as version is above 15 #663

Closed
wants to merge 1 commit into from
Closed

Build from source on apple silicon, as long as version is above 15 #663

wants to merge 1 commit into from

Conversation

thtliife
Copy link

Pull Request

Problem

No arm64 binary found on m1 apple silicon
issue: #641

Solution

If no tarball found on Darwin os with arm64 arch, falls back to building from source tarball, as long as version is above 15.
I have successfully built the following versions:

node/12.22.1
node/13.14.0
node/14.5.0
node/14.16.1
node/15.0.0
node/15.12.0
node/15.14.0

but according to nodejs issue #37309, Support is very unlikely to be back ported to 14.x or before due to requiring a SemVer Major V8 update

ChangeLog

Fallback to building from source if no prebuilt binary found

@shadowspawn
Copy link
Collaborator

Related: the nightly builds currently have an arm64 archive, although the index has not yet been updated.

https://nodejs.org/download/nightly/v16.0.0-nightly202104148d9d8236b7/

@thtliife
Copy link
Author

Related: the nightly builds currently have an arm64 archive, although the index has not yet been updated.

https://nodejs.org/download/nightly/v16.0.0-nightly202104148d9d8236b7/

You're right...
I just tried "n nightly" and got the following:
n nightly terminal output

running n after that results in:
n menu

So maybe this pull request is not gonna be required...?

@shadowspawn
Copy link
Collaborator

Building from source would be a big change and potential support burden with people asking questions about build or even runtime problems. For example, the Node.js building page is rather long.

I'm happy sticking with the pre-build binaries, which are just becoming available (hurrah!). I just saw a tweet this morning that Node 16 coming and featuring Apple silicon binaries:

Thank you for your contributions.

Repository owner deleted a comment from rockyedge May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants