Node.js is required for using many JavaScript tools and for creating server-side JavaScript applications. Here is how you install Node.js on a Mac.
- First download the latest node.js package from node.js official site and click on macOS installer, it will download.pkg file. Install Node.js on mac OS using Macintosh Installer once download completed, click on.pkg setup, you can see below options.
- Installing Node.js & NPM on the Mac with a package installer If you don’t want to use Homebrew for whatever reason, the other next easiest option is to use a the prebuilt installer from nodejs.org: Get the Node.js installer from nodejs.org.
The first thing you should do is check to see if you have a version of Node.js already installed. To do that:
![Node Node](/uploads/1/1/9/7/119713438/340792567.png)
Upgrade Node On Mac
- Open the Terminal by pressing Command+Space to open Spotlight Search and entering
Terminal
then pressing Enter. - Enter
node - v
in the Terminal and press Enter. - If you do have Node.js installed, it will output the version.
- Update to the latest version using
npm i -g npm
. If you get a bunch ofcheckPermissions
warnings, you should run the command as the superuser like this:sudo npm i -g npm
- You now have the latest version installed. You do not need to continue with these instructions.
- Update to the latest version using
- If you do not have Node.js installed, it will output something like
-bash: node: command not found
. Continue with these instructions to install it. - Go to nodejs.org. You'll see download links for MacOS. If you are using Node.js for a Webucator class, you should select the LTS version. The Current version has the latest features, but may be more prone to changes and bugs than the LTS (Long Term Support) version.
- When the file finishes downloading, locate it in Finder and double-click on it.
- Go through the entire installation process.
- When installation is complete, open the Terminal by pressing Command+Space to open Spotlight Search and entering
Terminal
then pressing Enter. - Enter
node - v
in the Terminal to verify that Node.js is installed correctly and to see the version of Node.js that was installed.
If a version was output, then you're all set.
Download Node Js On Mac
Major Node.js versions enter Current release status for six months, which gives library authors time to add support for them. After six months, odd-numbered releases (9, 11, etc.) become unsupported, and even-numbered releases (10, 12, etc.) move to Active LTS status and are ready for general use. Download the latest version of Node.js for Mac - Scalable event-driven JavaScript runtime. Read 0 user reviews of Node.js on MacUpdate. One of the obvious ones is to download the installer from nodejs.org. However, you might not want to be downloading a new installer every time there's a new version out. Here are few alternative ways to update to the latest version of Node.js on a Mac. Nvm is a script-based node version manager.