Install Node.js and Git
Two free helper programs your AI assistant needs. Install once and you're done.
Your AI assistant uses two free programs:
- Node.js runs your website on your own computer, so you can look at a preview. It also
includes
npx, which your AI uses to start the Switchboard helper. - Git keeps track of every version of your website, like "Track changes" in Word. That way you can always go back to an earlier version, and it's how your website gets to Switchboard.
You install them once. Open your terminal first.
#Installing
Windows has a built-in installer called winget. Paste these two commands one at a time into your terminal and press Enter after each:
winget install --id OpenJS.NodeJS.LTS -e --source wingetwinget install --id Git.Git -e --source wingetIf a window asks whether the program may make changes, click Yes.
Doesn't winget work? Download the installers from nodejs.org (choose
LTS, version 24 or higher) and git-scm.com instead. Click Next all the way
through: the default settings are fine.
On a Mac you use the free program Homebrew to install things. Don't have it yet? Paste this command into your terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Your Mac asks for your password. Nothing appears while you type; that's normal. Type it and press Enter. Then follow the instructions under Next steps at the end (they have you copy and paste two lines).
Then install Node.js and Git:
brew install node gitRather not use Homebrew? Download Node.js (choose LTS) from nodejs.org,
and install Git with xcode-select --install.
Your website needs Node.js 24 or newer. The Node.js version that comes with your system is often older, so install it from NodeSource, the official source for Linux.
On Ubuntu, Debian and Linux Mint:
sudo apt update && sudo apt install -y git curl
curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash -
sudo apt install -y nodejsOn Fedora:
sudo dnf install -y git curl
curl -fsSL https://rpm.nodesource.com/setup_24.x | sudo bash -
sudo dnf install -y nodejsAnother Linux? Install Git with your system's package manager and download Node.js (choose version 24 or higher) from nodejs.org.
Your computer asks for your password. Nothing appears while you type; that's normal.
#Checking it worked
Paste these commands into your terminal:
node --version
npx --version
git --versionYou'll see three version numbers, like v24.11.0, 11.6.2 and git version 2.51.0. The exact
numbers don't matter, as long as the Node.js number is 24 or higher (so v24, v25, v26 …).
Is it lower, like v20 or v22? Then install Node.js again as shown above: with an older version
your website can't run on your own computer.
Nothing else to do on a Mac.
Nothing else to do on Linux.
Getting a message like not recognized or command not found? Close your terminal, open a new
one and try again. Still no luck? See troubleshooting.
#Tell Git your name
Git records who made each change. Tell it your name and email address once (replace the example with your own details):
git config --global user.name "Anna Smith"
git config --global user.email "anna@example.com"Next step: install Claude Code.