Below are steps to install NodeJS on macOS (Catalina, Big Sur) using Terminal commands,
Quick steps to install NodeJS:- Open Terminal (Open Spotlight search and type - Terminal),
- Make sure you have brew installed - if not follow the article to install brew on macOS,
- Type command: brew install node
code2care@mac ~ % brew install node ==> Downloading https://ghcr.io/v2/homebrew/core/brotli/manifests/1.0.9 ==> Downloading https://ghcr.io/v2/homebrew/core/brotli/blobs/sha256:bcd00b6f423ec35f98aec55bc2c1cf433b6e70e915cdf04d .. .. ==> Downloading https://ghcr.io/v2/homebrew/core/node/manifests/15.14.0 ==> Downloading https://ghcr.io/v2/homebrew/core/node/blobs/sha256:221d1c7c020742aa23c390bdd6392895317b718501aa462686 ==> Downloading from https://pkg-containers-az.githubusercontent.com/ghcr1/blobs/sha256:221d1c7c020742aa23c390bdd6392 ==> Installing dependencies for node: brotli, c-ares, icu4c, libuv, jemalloc, libev, openssl@1.1 and nghttp2 ==> Installing node dependency: brotli ==> Pouring brotli--1.0.9.arm64_big_sur.bottle.tar.gz 🍺 /opt/homebrew/Cellar/brotli/1.0.9: 25 files, 2.3MB ==> Installing node dependency: c-ares ==> Pouring c-ares--1.17.1.arm64_big_sur.bottle.tar.gz 🍺 /opt/homebrew/Cellar/c-ares/1.17.1: 85 files, 693.8KB ==> Installing node dependency: icu4c ==> Pouring icu4c--68.2.arm64_big_sur.bottle.tar.gz ==> Caveats icu4c is keg-only, which means it was not symlinked into /opt/homebrew, because macOS provides libicucore.dylib (but nothing else). .. ==> openssl@1.1 A CA file has been bootstrapped using certificates from the system keychain. To add additional certificates, place .pem files in /opt/homebrew/etc/openssl@1.1/certs and run /opt/homebrew/opt/openssl@1.1/bin/c_rehash openssl@1.1 is keg-only, which means it was not symlinked into /opt/homebrew, because macOS provides LibreSSL. If you need to have openssl@1.1 first in your PATH, run: echo 'export PATH="/opt/homebrew/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc For compilers to find openssl@1.1 you may need to set: export LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib" export CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include"
- Test if Node was installed correctly by command: node -v
code2care@mac ~ % node -v
v15.14.0
code2care@mac ~ % node
Welcome to Node.js v15.14.0.
Type ".help" for more information.
> .help
.break Sometimes you get stuck, this gets you out
.clear Alias for .break
.editor Enter editor mode
.exit Exit the REPL
.help Print this help message
.load Load JS from a file into the REPL session
.save Save all evaluated commands in this REPL session to a file
Press Ctrl+C to abort current expression, Ctrl+D to exit the REPL
> .exit
code2care@mac ~ %

Install NodeJS on macOS Tutorial
✌️ You can also download a .dmg file and install Node from https://nodejs.org/en/
Have Questions? Post them here!
More Posts related to MacOS,
- How to connect AirPods to Mac
- Display Safari URL address link on hover
- Mac turn dark mode on or off using terminal command
- Docker Desktop needs privileged access macOS
- How to install Java on macOS [Big Sur]
- How to start/boot macOS in safe mode - Big Sur 11.0, Catalina 10.15, or Mojave 10.14
- Find Mac version using terminal command
- How to fix command not found brew (bash, zsh) on macOS Terminal
- How to change default macOS Terminal Window size
- How to make EditText text to uppercase or lowercase on macOS
- Disable Startup Sound on macOS
- How to switch from bash to zsh shell in macOS Terminal
- How to make macOS Terminal window Transparent (or Opaque)
- Remove Now Playing icon from macOS Big Sur Menu Bar
- Test internet speed using macOS Terminal command
- How to change macOS Safari default language
- Encode or Decode Base64 String using Mac Terminal Command
- Safari - Get HTTP Request Response Headers
- How to open terminal on Mac to run commands
- How to install homebrew (brew) on M1 Mac
- How to display directory tree in Mac Terminal
- How to Change Mouse Wheel Scroll Direction on Mac
- MacoOS - xyz is an app downloaded from the internet. Are you sure you want to open it? Alert
- The default interactive shell is now zsh. [macOS]
- Change Terminal Cursor Type in Mac (MacOS Shell)
More Posts:
- Word wrap text in Notepad++ - NotepadPlusPlus
- ls: .: Operation not permitted - Mac Big Sur Terminal Zsh Error - MacOS
- Android Images with Rounded Corners : ImageView - Android
- How to Download Jira App for Mac - Jira
- Android Disable back button programatically - Android
- How to enable Dark Mode in Windows 11 - Windows-11
- Check Bluetooth is turned on or off on Android device programmatically [Java Code] - Android
- How to know docker Engine details - Docker