Skip to main content
100%

Install node on Apple Silicon M1 both ARM and x86 (Rosetta)

✓ Published0🌍 Public
Aackuser
Last edited Jan 31, 2021
Created on Jun 20, 2023

This example shows how to install Node.js on Apple Silicon M1 for both native ARM and emulated x86 (Rosetta) architectures using nvm, the Node Version Manager. It demonstrates running `nvm install` from separate native and Rosetta terminals to obtain distinct Node versions, then verifies each installation with `process.arch` output. The code includes shell commands that query the architecture via `arch` and assign aliases (`arm`, `intel`) for convenient switching between versions. The data source is a gist with four shell scripts and a README.

AI-generated description

Similar vizzes