Ghost Posted November 20, 2020 Report Share Posted November 20, 2020 Currently looking for a version of NodeJS compiled natively on Apple M1 (Apple Silicon) aka ARMv8 for macOS Seems all current and past NodeJS builds including current nightlies do not contain any Darwin ARM binaries yet. I may attempt to compile v12.18.3 for Darwin ARM if no release soon...Read below for updates....NodeJS v15 compiled successfully on macOS Big Sur 11.0.1 - Kernel 20.1.0 - Darwin ARM64 M1 Chip 1 Quote Founder of BlockForums.org - PM me for any help - Join our Discord Server: https://discord.gg/UPpQy3n Link to comment Share on other sites More sharing options...
Ghost Posted November 21, 2020 Author Report Share Posted November 21, 2020 Okay so you just use nvm (Node Version Manager) Available here: https://github.com/nvm-sh/nvm Node Version Manager if it cant download the binary prebuilt, it will download the source of node and attempt to compile it. I should add that you may need Macports installed https://www.macports.org/install.php Run the command after installing Macports for Big Sur: sudo port install git curl openssl automake Run the following command after installing MacPorts and the XCode Command Line Toolchain: nvm install v15 It will try to find any available binaries, which will fail, and then it will download the source of NodeJS and attempt to compile it for darwin arm64 with no-asm Successfully compiled NodeJS v15.2.1 on Apple Silicon macOS Big Sur M1 Mac Mini Late 2020 1 Quote Founder of BlockForums.org - PM me for any help - Join our Discord Server: https://discord.gg/UPpQy3n Link to comment Share on other sites More sharing options...
Ghost Posted November 21, 2020 Author Report Share Posted November 21, 2020 I should add that you do need Macports installed https://www.macports.org/install.php Run the command: sudo port install git curl openssl automake This will enable you to have deps installed to compile NodeJS, you also need Xcode 12.2 fully setup and command line tools installed. 1 Quote Founder of BlockForums.org - PM me for any help - Join our Discord Server: https://discord.gg/UPpQy3n Link to comment Share on other sites More sharing options...
Ghost Posted November 22, 2020 Author Report Share Posted November 22, 2020 I will eventually make a full guide on how to compile Node directly from the git for different versions for darwin arm64 Quote Founder of BlockForums.org - PM me for any help - Join our Discord Server: https://discord.gg/UPpQy3n Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.