Setting up your computer
6 minFour tools do most of the work: an editor, a terminal, Node and Git. You install each one on a Mac or a Windows laptop, then make each one tell you its version.
Lesson video
Tastebud · 5:50 · Captions on screen
Install the four tools, then make each one print its version in the terminal.
- Why. The terminal only runs programs it can find, and tools break on the wrong version. A version number proves the install worked and shows which one you have.
- Real example. The page offers v26.13.1, marked LTS, and a v27 alpha. Install the LTS. An alpha is an early build for library authors, and it can change between releases. (Node.js, Nov 2026)
- When to break it. Use an older Node when a team's project asks for one. If its setup notes say Node 24, which gets fixes until April 2028, run 24 for that project.
- Common mistake. Following an old tutorial that installs Node 18. Node 18 stopped getting fixes in April 2025, and Vite, a tool this course uses, no longer supports it.
Our take. Install Node 26 LTS, the long-term support line, and skip the alpha the download page also offers. Then ask every tool its version, because a wrong version or a tool the terminal can't find causes most setup trouble.
Install the tools on a Mac or on Windows
Install VS Code first, then open its terminal with View > Terminal. Install Node and Git from their official sites. After each install, quit VS Code and open it again, so its terminal can find the new tool.
- VS Code: open the .dmg and drag it to Applications
- Then press Cmd+Shift+P, type shell command, run the one that installs 'code' in PATH, and choose No to Copilot CLI
- Terminal: View > Terminal opens zsh
- Node: the macOS Installer (.pkg) for v26.13.1 LTS
- Git: type xcode-select --install and click Install
- VS Code: run the User setup, which adds code to PATH for you
- Terminal: View > Terminal opens PowerShell
- Node: the Windows Installer (.msi) for v26.13.1 LTS
- Git: Git for Windows 2.56.1, with the default options
Then tell Git who you are, once: git config --global user.name "Your Name" and the same with user.email.
Pick the LTS on Node's download page
LTS means long-term support, the release line that gets fixes for 30 months. The page also lists an alpha, an early build for library authors to test against. Pick v26.13.1 LTS, then the installer for your system.
Recreated from nodejs.org, Nov 2026.
Read the message when a tool doesn't answer
PATH is the list of folders the terminal searches for programs. An install adds a folder to it, but a terminal that was already open keeps the old list. Each message below leads to its own fix.
Each message the terminal prints points to one fix
- On a Mac.
- zsh: command not found: code. VS Code isn't on your PATH yet. In VS Code press Cmd+Shift+P, run the shell command that installs 'code' in PATH, choose No to Copilot CLI, then open a new terminal.
- A window offers developer tools. That's macOS after xcode-select --install, offering Apple's Command Line Tools, which include Git. Click Install, let it finish, then run git --version again.
- On Windows.
- The term 'node' is not recognized. Windows can't find Node yet. Close VS Code completely and open it again so its terminal reads the new PATH, and run the .msi again only if node -v still fails.
- npm.ps1 cannot be loaded. Windows blocks PowerShell script files by default, and npm starts through one. Run Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser once, type Y if it asks, then run npm again.
- On a Mac or Windows.
- node -v prints v22.23.5. An older Node was already on the laptop. Install v26.13.1, reopen VS Code and ask again, and if 22 still shows, another install sits earlier on your PATH.
Try it
Make each tool answer
Open VS Code and choose View > Terminal. Type each command, press Enter, and paste what it prints into the box. A box ticks when the answer shows the tool is installed. If a command isn't found, the fixes above cover it.
- VS Code answers with a version such as 1.148.0 (not yet)
- The terminal answers with zsh 5 or a PowerShell version table (not yet)
- Node answers v26, the LTS line (not yet)
- Git answers git version 2 (not yet)
Quick check
You've just installed Node. In the VS Code terminal you already had open, node -v says command not found. What do you try first?
Watch next
Watch it for A fast tour of what VS Code is and what it gives you beyond a plain text editor.
Watch it for What Node.js is and how it runs JavaScript outside the browser, which is why tools like Vite need it on your laptop.
Connects to: 4.4 Modules and build tools · 5.1 Git basics · 5.3 Deploying a site
Sources · checked Nov 2026
- Node.js: Download pagev26.13.1 is the Latest LTS and v27.0.0-alpha.0.2.0 the Latest Alpha; the 'Want new features sooner?' note; the '{os} Installer' buttons (.pkg for macOS, .msi for Windows)
- Node.js Release Working Group: release scheduleNode 26 Active LTS since 28 Oct 2026, end of life 30 Apr 2029 (30 months of LTS); alpha releases are 'intended for library authors and CI pipelines, not for production use'; Node 24 end of life 30 Apr 2028; Node 18 end of life 30 Apr 2025
- Node.js release index (dist/index.json)v26.13.1 released 10 Nov 2026 with npm 11.20.0; node-v26.13.1.pkg and the x64 and arm64 .msi installers exist
- VS Code Docs: Visual Studio Code on macOSOpen the .dmg, drag Visual Studio Code.app to Applications; Command Palette (Cmd+Shift+P), type 'shell command', run 'Shell Command: Install 'code' and optionally 'copilot' commands in PATH'; choose No to add only 'code'; restart the terminal
- VS Code Docs: Visual Studio Code on WindowsThe User setup is recommended, adds VS Code to %PATH%; restart your console and verify with code --version
- VS Code Docs: Getting started with the terminalOpen the terminal with View > Terminal or Ctrl+`; it opens a default shell such as Bash, PowerShell or Zsh
- VS Code: release API and Updates pageVS Code 1.148 is the current release; the update API returns productVersion 1.148.0, commit 661626d0
- Git: Install for macOSApple ships Git with the Xcode Command Line Tools, installed with xcode-select --install; non-source builds may lag the 2.56.1 source release
- Git: Install for WindowsGit for Windows 2.56.1, released 10 Nov 2026
- Pro Git: First-Time Git Setupgit config --global user.name and user.email set your identity once for every commit
- Apple Support: Use zsh as the default shell on Maczsh is the default shell for new accounts since macOS 10.15
- Microsoft Learn: about_Automatic_Variables ($PSVersionTable)$PSVersionTable is a read-only table of the running PowerShell's details, including PSVersion
- Microsoft Learn: What is Windows PowerShell?Windows PowerShell is the version that ships in Windows; the latest is Windows PowerShell 5.1
- Microsoft Learn: about_Execution_Policies (Windows PowerShell 5.1)Restricted is the default execution policy for Windows client computers and prevents running script files; 'Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser' sets it for your account; the change is effective immediately
- Vite Guide: Getting started, compatibility noteVite requires Node.js 20.19+ or 22.12+, so Node 18 is unsupported