This lesson is being recorded

Every video of this course is being uploaded to my YouTube channel. Subscribe so you do not miss it.

Bruno AshfordBruno Ashford @brunoashfordSubscribe

Module 2 · Lesson 2.6 · 13 min

When Setup Goes Wrong

Diagnose and fix the most common installation and login errors on your own.

Module 2
Fearless Setup on Mac and Windows

Every click shown, nothing skipped

Bruno Ashford
Bruno Ashford · Module 201 / 12
2.1 Plans and costs

Which plans include what

PlanClaude CodeCoworkBest for
FreeNoNoTrying Claude chat
ProYesYesMost owners, to start
MaxYesYesHeavy daily use
Team / EnterpriseYesYesStaff seats, admin control
Console (API)YesNoPay per use, automation

Check live prices on claude.com/pricing before buying.

Bruno Ashford · Module 202 / 12
2.1 The real question
Do not ask what the plan costs. Ask how many hours it has to save to pay for itself.
Bruno Ashford
Bruno Ashford · Module 203 / 12
2.2 First steps in Cowork

Your first agent, no terminal

  1. 1Practice folderCopies, never originals
  2. 2Connect itChoose Cowork, add the folder
  3. 3Brief the outcomeFinish line, no deleting
  4. 4Spot checkFive rows against the files
Bruno Ashford · Module 204 / 12
2.3 Installing on Mac

Five minutes, one line

Open Terminal with Cmd + Space, then:

  • curl -fsSL https://claude.ai/install.sh | bash
  • Open a new Terminal window
  • claude --version to verify
  • claude to start and log in
Bruno Ashford · Module 205 / 12
2.4 Installing on Windows

PowerShell, not CMD

Look for PS at the start of the line.

  • Optional: install Git for Windows
  • irm https://claude.ai/install.ps1 | iex
  • No Administrator rights needed
  • New window, then claude --version
Bruno Ashford · Module 206 / 12
2.5 The terminal in 10 commands

Most of what you will ever type

JobMacWindows PowerShell
Where am I?pwdpwd
What is here?lsls or dir
Go in / upcd name / cd ..cd name / cd ..
Create foldersmkdir A Bmkdir A, B
Open in windowopen .explorer .
Start Claudeclaudeclaude
Bruno Ashford · Module 207 / 12
2.5 The one idea
Claude Code works inside the folder you start it in. Choose the folder, choose what it sees.
Bruno Ashford
Bruno Ashford · Module 208 / 12
2.6 When setup goes wrong

Error, cause, fix

You seeIt meansFix
command not foundPATH not setPATH fix, new window
irm is not recognizedYou are in CMDOpen PowerShell
403 after loginPlan or role issueCheck subscription or role
Organization disabledOld API keyRemove ANTHROPIC_API_KEY
Bruno Ashford · Module 209 / 12
2.6 The golden rule

Four moves for any error

  1. 1ReadThe exact words on screen
  2. 2MatchFind them in the guide
  3. 3FixApply the one-line fix
  4. 4RestartOpen a new window
Bruno Ashford · Module 210 / 12
Module project

Your company workspace

End this module with a real place to work.

  • Claude Code installed and verified
  • Company folder, one subfolder per department
  • README.md written by Claude
  • First session saved as a file
Bruno Ashford · Module 211 / 12
Recap
The hardest part of this course is behind you. From here on, you mostly speak plain English.
Bruno Ashford
Bruno Ashford · Module 212 / 12
01 / 12

Use ← → to move. The marker highlights text and the pencil draws on the slide; navigation locks while you annotate. Undo removes the last mark, Esc exits.

1Run the health check first

Before searching anything, run these two commands. The first proves Claude Code is installed. The second prints a read-only diagnosis of your installation and settings with suggested fixes.

Terminal
claude --version
claude doctor
2Fix 'command not found' or 'not recognized'

Claude is installed but your terminal cannot find it. On Mac with the default shell, add the install folder to your PATH with the command below, then open a new window. On Windows, use the two-line PowerShell fix in the troubleshooting guide.

Terminal
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
3Fix the wrong-terminal errors on Windows

'irm is not recognized' means you are in CMD: open PowerShell. 'The token && is not a valid statement separator' means you pasted the CMD command into PowerShell: use the PowerShell command instead.

4Fix login problems

If the browser does not open, press c to copy the login link. If login keeps failing, type /logout inside Claude Code, close it and start again with claude. A 403 error usually means the subscription is not active or your company account lacks the Claude Code role.

5Fix the hidden API key problem

If Claude says your organisation is disabled while your subscription is active, an old API key on your computer is overriding it. Remove it and start again. On Windows PowerShell, use Remove-Item Env:ANTHROPIC_API_KEY instead. Inside Claude Code, /status shows which login is active.

Terminal
unset ANTHROPIC_API_KEY
claude
6Ask Claude to help with anything else

Once Claude Code runs, it can help diagnose its own setup. Type /doctor inside a session, or ask in plain English.

Prompt for Claude
I just installed you and something feels wrong: [describe what you see]. Check my setup, explain the cause in plain English, and propose a fix. Ask me before changing anything.

Here is something most tutorials will not tell you: setup is where non-technical people quit. Not because the problem is hard, but because the error message looks frightening and nobody explained what it means. Almost every error you will see has a one-line cause and a one-line fix.

In this lesson we walk through the errors I see most often with owners, in the order you are likely to meet them. Keep the Setup Troubleshooting Guide open. The golden rule: read the error, find its exact words in the guide, apply the fix, open a new window.

Key points

  • Run claude --version and claude doctor first.
  • Not found or not recognized means a PATH issue.
  • Most Windows errors are the wrong terminal.
  • /logout then log in again fixes most login problems.
  • An old ANTHROPIC_API_KEY can override your subscription.

Avoid

  • Reinstalling five times instead of reading the error message.
  • Forgetting to open a new terminal window after a fix.
  • Installing with several methods at once, which creates conflicting versions.
  • Treating a billing or account issue as an installation issue.
Real-world example: a dental clinic

The clinic's practice manager hit two errors in a row: 'claude is not recognized' on Windows, then a 403 after login. The first was the PATH fix. The second turned out to be a lapsed card on the Pro subscription. Both were solved in under ten minutes with the guide, without calling an IT provider at $120 an hour.

Bruno Ashford Subscribe