You can install Node.js on macOS without using Terminal by downloading the official graphical installer (.pkg file). This method is ideal for beginners because you only need to click through the installation wizard.
What You Need
- A Mac running macOS.
- An administrator account and password.
- An internet connection.
- The official Node.js installer from the Node.js website.
Step 1: Download Node.js
- Open your web browser, such as Safari or Chrome.
- Go to the official Node.js website:
https://nodejs.org/en/download. - Select the LTS (Long Term Support) version. LTS is recommended because it is more stable for most projects.
- Under macOS, download the macOS Installer (.pkg) file.
- Wait for the download to finish. The file will usually appear in your Downloads folder.
Step 2: Open the Installer
- Open Finder.
- Click Downloads in the left sidebar.
- Find the downloaded file, usually named something like
node-v22.x.x.pkg. - Double-click the file to launch the graphical installer.
Step 3: Install Node.js
Follow these steps in the installer window:
- Click Continue on the introduction screen.
- Read and accept the software license agreement.
- Click Continue again.
- Choose the installation destination. In most cases, keep the default Macintosh HD.
- Click Install.
- Enter your Mac administrator username and password when prompted.
- Wait for the installation progress bar to complete.
- Click Close when the installer says the installation was successful.
Node.js and npm are installed together by the official installer; you do not need to install npm separately.
Step 4: Verify the Installation
Although this method uses a GUI, you need Terminal briefly to confirm that Node.js works.
- Press
Command + Spaceto open Spotlight. - Type Terminal and press Enter.
- Run the following commands:
node -v
npm -v
If installation succeeded, Terminal will show version numbers similar to:
v22.11.0
10.9.0
node -v displays the installed Node.js version, while npm -v displays the installed npm version.
Step 5: Run Your First Program
You can create and run a JavaScript file using a GUI text editor such as Visual Studio Code.
- Install and open Visual Studio Code.
- Create a new folder called
learn-node. - Inside that folder, create a file named
app.js. - Add this code:
console.log("Hello, Node.js on macOS!");
- Save the file.
- Open Terminal, navigate to the folder, and run:
cd learn-node
node app.js
Terminal should display:
Hello, Node.js on macOS!
Common Issues
- “node: command not found” — Close and reopen Terminal, then try
node -vagain. If it still fails, restart your Mac. - Installer cannot be opened — Go to System Settings > Privacy & Security and allow the installer if macOS blocks it.
- Permission required — Enter your Mac administrator password when the installer asks for it.
- Need to update later — Download and run the newest official
.pkginstaller again, or use Homebrew/NVM for easier version management.
When to Use Terminal Instead
Use the GUI installer if you want the simplest setup. However, if you will work on multiple JavaScript projects, consider NVM later because it makes it easier to switch between Node.js versions.




Comments
Join the discussion. Sign in with GitHub to leave a comment.