There are two ways of installing Node.js on a Mac, either by downloading the
.pkg file from the Node.js website and installing it using Apple's installer application, or by using the Homebrew command-line package manager.
The easiest way of getting up and running is by just installing the
.pkg file, so let's go over that first. Installing Homebrew might involve more work, but it is worth it if you prefer working on the command-line tool and would build CoffeeScript from source.
Head on over to the Node.js website (nodejs.org) and then click on the Downloads button. You'll see a couple of options available, but choose the Macintosh Installer option, as shown in the following screenshot: