Node and npm
Install the JavaScript runtime and package manager used by the portfolio project.
Goal
Install the JavaScript runtime and package manager used by the portfolio project.
Before you start
- A working terminal
- Permission to install software
Node.js lets your computer run JavaScript outside the browser. npm is the package manager that comes with Node. We use them to create and run the portfolio project.
Install Node.js LTS
Go to the official Node.js download page and install the current LTS version: nodejs.org/en/download.
Use the official installer for your operating system. Avoid random third-party download sites.
Restart the terminal
After installing Node, close your terminal and open it again. This lets Windows refresh the available commands.
Check the install
node --version
# To check node version number
npm --version
# To check npm version number
Expected result: both commands print version numbers.
If you see an error like node is not recognized, restart the terminal again. If it still fails, reinstall Node from the official page.
What just happened?
node --versionchecks the JavaScript runtime.npm --versionchecks the package manager.- A version number means your terminal can find the tool.
Why this matters for AI agents
AI coding agents often run project commands for you. They may install packages, start development servers, run tests, or check builds. Node and npm are the foundation for many beginner web projects.
Official references
Lesson checklist
Tick these as you verify them. Signed-in students sync to the workshop dashboard; everyone else keeps progress in this browser.
Local progress
Save this lesson on this device.
No account needed yet. This only stores the lesson slug in your browser, not commands, secrets, or project files.