Episode 2: Getting Started with Node.js
Published Aug 6, 2026 · 7:30 · 7 comments
This screencast walks you through installing Node.js on Linux, Mac, and Windows, then shows how to run several Node versions side by side using NVM. It wraps up by building a small HTTP server in Node.js.
Download WebM (12 MB) Download MP4 (24 MB)
Show Notes
This episode runs on Node.js v0.8.5. Grab the matching downloads and consult the documentation.
Setting Up Your Environment
Xcode
Grab Xcode from the Apple website and install it. If you are on Xcode 4.4 or later, add the Command Line Tools by opening Xcode → Preferences and choosing the Downloads tab.
Installing Git
Git can be installed through a package manager such as Homebrew, or by grabbing an installer straight from the Git website.
Installing NVM
Clone NVM into ~/.nvm, then source it from your shell profile:
git clone git://github.com/creationix/nvm.git ~/.nvm
source ~/.nvm/nvm.sh
echo "source ~/.nvm/nvm.sh" >> ~/.bashrc
nvm install v0.8.5
nvm alias default v0.8.5On OS X, make ~/.bash_profile load ~/.bashrc by adding the following line to ~/.bash_profile:
[[ -s ~/.bashrc ]] && source ~/.bashrcTo activate a Node.js version you already installed, hand it to nvm use:
nvm use v0.8.4Building a Basic HTTP Server
Spin up a minimal server with the built-in http module:
var http = require('http');
var server = http.createServer(function(request, response) {
var url = request.url;
response.writeHead(200, { 'Content-Type': 'text/html' });
response.end("<h1>Hello from Node.js!</h1><p>You request the URL: " + url + "</p>");
});
server.listen(3000);Comments





Tony Momoh, 10 years ago: splendid :D
RichardForrester, 10 years ago: Excellent!!! I'm really excited to learn about node.js -- coming from the Laravel framework.
Frequently Asked Questions
Copyright © 2012 Brandon Tilley
Node.js is an official trademark of Joyent. This site is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.

Whether you are new to Node.js or coming from another stack, this episode gives you a repeatable setup you can reuse on any machine. Follow along with the show notes to install Node.js, keep versions organized with NVM, and confirm everything works by running your first HTTP server on port 3000.