Jump to content

Recommended Posts

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

  • Upvote 1

Founder of BlockForums.org - PM me for any help - Join our Discord Server: https://discord.gg/UPpQy3n

Link to post
Share on other sites

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 do 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

44630356_ScreenShot2020-11-20at9_48_37PM.thumb.png.8365848c6ad54813cf157f76959f829e.png

  • Thanks 1

Founder of BlockForums.org - PM me for any help - Join our Discord Server: https://discord.gg/UPpQy3n

Link to post
Share on other sites

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.

  • Like 1

Founder of BlockForums.org - PM me for any help - Join our Discord Server: https://discord.gg/UPpQy3n

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...