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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.