The best way to install Node.js and npm is through Node.js Version Manager, or nvm. There are several ways you can install Node.js. Three approaches to installing Node.js and npm Follow the instructions in the Git documentation to download Git for your platform. You need to install the Git client for your platform. This video walks you through the steps in this Node.js tutorial: After showing you how to install Node.js, I walk you through installing the editor, VS Code, where you can write your source code for this learning path.
This tutorial shows you how to install the Node.js runtime and the Node.js package manager, npm, 3 different ways - from the Node.js download page, via Homebrew (for MacOS installation), and through the Node.js Version Manager. Check out Learn Node.js, Unit 1: Overview of Node.js Learning Path to start at the beginning. This tutorial is part of the Node.js Learning Path.