1. Getting Started

In this chapter, you dive right into things and get Node.js installed on your machines and make sure it is working correctly before moving further into the language and writing networked applications. By the end of this chapter, you should have Node installed and running on your computer, have entered a few small test programs to play around with it, and know how to use the built-in Node debugger.

Installing Node.js

Let’s begin by looking at installation on Windows. Mac and Linux users should feel free to skip ahead to the appropriate sub-section, unless you have both types of machines.

Installation on Windows

To install Node.js on a Windows machine, you can use the handy installer provided on the nodejs.org website. Visit ...

Get Learning Node.js: A Hands-On Guide to Building Web Applications in JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.