How to install NodeJS natively on Apple Silicon M1?

Viewed 93101

I am trying to install NodeJS on the new Apple Silicon MacBook Pro, but I wasn't able to find a way to install it on the ARM-based Apple M1.

The standard installation will run in Intel emulation mode, but I saw they already have an ARM Linux version which I assume is not suitable for M1 Macs.

If possible, how can I install Node.JS on Apple Silicon without having it run in emulation mode?

2 Answers

Hit similar issues. I would recommend you enable "Open using Rosetta" on Terminal, which should reduce all ends of pain for the moment. When this was enabled, I was able to install Node, as well as Homebrew, etc, with no issues. To do to:

  1. right click your terminal app from Finder
  2. select "Get Info"
  3. enable "Open using Rosetta"

N.B. I am using iTerm in the screenshot below, but the same applies for Terminal

Enabling Open using Rosetta

Related