Install everything
Node.js, VS Code, and your first project folder — hand-held for Windows and macOS.
Step 1
The idea
Before a chef can cook, they need a kitchen — an oven, a knife, a chopping board. Before you can write automation, you need three things on your computer:
- Node.jsThe engine that runs JavaScript on your computer (outside of a browser).
- VS CodeThe editor where you write your code — like Microsoft Word, but for code.
- A project folderThe place where all your files live together.
This lesson installs all three. Take your time — you only do this once.
Step 2
See it run
By the end of this lesson, you'll type this command and see a version number — proof that Node.js is installed and ready:
$ node --version
v22.x.x ← you'll see something like thisThat output means your computer can now run JavaScript. Everything else follows from this.
Step 3
Now you try
Follow every step below for your operating system. Each step has a screenshot placeholder — those images will guide you exactly where to click.
🪟 Windows
Step 1 — Download Node.js
- Open your browser and go to nodejs.org
- Click the big green LTS button (Long Term Support — the stable version)
- A
.msifile will download
[SCREENSHOT: nodejs.org homepage with the LTS download button highlighted]
Step 2 — Install Node.js
- Double-click the downloaded
.msifile - Click Next on every screen — the defaults are fine
- Click Install, then Finish
[SCREENSHOT: Node.js Windows installer showing the Next button]
Step 3 — Verify Node.js
- Press Win + R, type
cmd, press Enter - In the black window that opens, type:
node --version - Press Enter — you should see
v22.x.x
[SCREENSHOT: Windows Command Prompt showing node --version output]
Step 4 — Download VS Code
- Go to code.visualstudio.com
- Click Download for Windows
- Run the installer — click Next/Install/Finish as before
[SCREENSHOT: VS Code download page for Windows]
Step 5 — Create your project folder
- Open VS Code
- Click File → Open Folder
- Navigate to Desktop (or Documents), click New Folder, name it
playwright-course - Click Select Folder
[SCREENSHOT: VS Code with the playwright-course folder open in the sidebar]
🍎 macOS / Linux
Step 1 — Install Node.js via the official installer
- Go to nodejs.org and download the LTS
.pkgfor macOS - Open the downloaded file and follow the installer steps
- Linux: run
sudo apt install nodejs npmin the terminal
[SCREENSHOT: nodejs.org LTS download button for macOS]
Step 2 — Verify Node.js
- Open Terminal (search Spotlight with Cmd+Space, type Terminal)
- Type
node --versionand press Enter - You should see
v22.x.x
[SCREENSHOT: macOS Terminal showing node --version output]
Step 3 — Install VS Code
- Go to code.visualstudio.com and download for macOS
- Open the
.dmg, drag VS Code to Applications
[SCREENSHOT: macOS VS Code installation — drag to Applications]
Step 4 — Create your project folder
- Open VS Code → File → Open Folder
- Create a new folder called
playwright-courseon your Desktop - Select it
[SCREENSHOT: VS Code on macOS with playwright-course folder open]
node --version and VS Code opens with your folder — you're done! Your kitchen is ready.Step 4
Why a tester cares
Everything in this course runs through Node.js and VS Code. When you reach Lesson 1.18 and install Playwright, you'll type:
$ npm init playwright@latestThat command only works because Node.js (and its package manager npm) is installed. Without this setup, nothing else in the course works.
Recap
- 1Node.js lets your computer run JavaScript files outside of a browser.
- 2VS Code is the editor where you'll write every file in this course.
- 3Your playwright-course folder is your workspace — everything lives here.