This document explains how to get Node.js applications running on your machine.
Download XCode from the Apple App Store. Once you've installed XCode, you'll also need to install the Command Line Tools for XCode. Go to XCode > Preferences, click on the Downloads tab, and install the tools from there.