Lesson 2 / 28

Installing Node.js

Get Node 20 LTS and check it's on your PATH.

Check / install

Download the LTS build from nodejs.org, or use a version manager like nvm.

node --version    # e.g. v20.11.0
npm --version     # bundled with Node

# Using nvm:
nvm install 20
nvm use 20

npm ships with Node

You don't install npm separately — it's bundled with every Node.js installer.