Node.js is an open source, cross-platform runtime environment for server-side and networking applications. Node.js applications are written in JavaScript, If you are not already familiar with what Node.js is, you can learn more over it from here.
We will be using Homebrew to install Node.js, Homebrew makes it more easier to install and upgrade Node.js.
Getting Started
Downloading and installing Homebrew (XCode need to be installed)
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”<br>
Code language: JavaScript (javascript)
You can install Node.js by entering this command.
brew install node
To check everything is working correctly you can run.
brew doctor
Now you have Node.js installed on your Mac