Chapter 2: Install Node.js

You won’t get far on your Node.js journey without installing the runtime first! You have three primary options:

  • Install Node.js on your local development machine running Linux, macOS, or Windows.

    This is the easiest choice, and the best way to get started—and it’s the option we’ll be taking here.

  • Install Node.js via a virtual machine (typically Linux) running on Hypervisor software such as VMware, VirtualBox, Parallels, or Hyper-V.

    This won’t affect your main OS, so you can experiment without risk.

    Windows users should also consider the Windows Subsystem for Linux 2 (WSL2), which offers a highly integrated Linux environment. Follow the Linux instructions accordingly (found below in the “How to Install Node.js ...

Get Node.js: Novice to Ninja 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.