Set up a package manager
You've got Git. Now we'll set up the tool you'll use to install everything else from here on, without hunting for downloads online: a package manager. You tell it what you need, and it fetches and installs it.
- Mac: Homebrew, needs to be installed once.
- Windows: winget, already built into Windows 10 and 11. There's usually nothing to do here, we just check that it works.
So on Windows, you already used the package manager in lesson 2 without noticing.
Paste this into Claude Code
Let's continue with my setup. Explain things in plain English and ask me
before you do anything that's hard to undo.
1. Find out whether I'm on macOS or Windows.
2. If macOS: Check whether Homebrew is installed (run `brew --version`).
If not, install it with the official script from https://brew.sh and
make sure the `brew` command also works in a freshly opened
Terminal afterwards (add it to the PATH if needed).
3. If Windows: Check whether `winget` works (run `winget --version`).
If it does, we're done. If not, tell me how to get it (the
"App Installer" app from the Microsoft Store).
4. At the end, confirm that the package manager works and show me its
version number.
How you know it worked
- Mac:
brew --versionprints a version number. - Windows:
winget --versionprints a version number.
If something goes wrong
Mac, installing Homebrew by hand: Open the Terminal app and paste this one line:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Follow the instructions. You may be asked for your Mac password. Nothing shows up on screen while you type, that's normal. At the end, it may print two lines that start with eval. Run those, then close the Terminal and open it again.
Windows, adding winget: Open the Microsoft Store, search for App Installer and install or update it. winget comes with it.