Set up Node.js. On Apple Silicon, the setup is almost the same as Intel, but some tools need ARM64 builds. I'll give you the main methods step by step:
✅ Method 1: Install Node.js with Homebrew (simple & recommended)
-
Install Homebrew (if not already installed):
-
Install Node.js (includes npm):
-
Verify installation:
You should see versions (e.g.,
v22.x.xfor Node and10.x.xfor npm).
✅ Method 2: Install Node.js using Node Version Manager (nvm) (best for multiple versions)
👉 Recommended if you work on different projects needing different Node versions.
-
Install nvm:
-
Load nvm (add this to your
~/.zshrcor~/.bashrc): -
Restart terminal, then check:
-
Install latest Node.js:
-
Install specific version (example: LTS v20):
-
Check version:
✅ Method 3: Install via official Node.js installer (GUI)
-
Go to Node.js Downloads.
-
Choose macOS Installer (.pkg) ARM64 for Apple Silicon.
-
Run installer → follow prompts.
-
Verify:
⚡ Pro Tip
-
If you’re going to do a lot of development → use nvm (method 2).
-
If you just need Node quickly for one project → use Homebrew (method 1).
-
If you prefer GUI → official installer (method 3).
Comments
Post a Comment