Troubleshooting
Troubleshooting
Section titled “Troubleshooting”Something not working? Don’t panic! Here are solutions to common problems.
Installation Issues
Section titled “Installation Issues””node: command not found” or “npm: command not found”
Section titled “”node: command not found” or “npm: command not found””Problem: Your terminal doesn’t recognize Node.js commands.
Solutions:
- Restart your terminal - Close and reopen Command Prompt/Terminal
- Check if Node is installed:
Terminal window node --version - If not installed, go back to the Install Claude Code section
”npm ERR! permission denied” (Mac)
Section titled “”npm ERR! permission denied” (Mac)”Problem: npm doesn’t have permission to install globally.
Solution: Use sudo:
sudo npm install -g @anthropic-ai/claude-codeEnter your Mac password when prompted (you won’t see characters as you type).
“npm ERR! network error”
Section titled ““npm ERR! network error””Problem: Can’t connect to npm servers.
Solutions:
- Check your internet connection
- Try again in a few minutes (servers might be busy)
- If behind a firewall/VPN, try disabling temporarily
Claude Code Issues
Section titled “Claude Code Issues””claude: command not found”
Section titled “”claude: command not found””Problem: Claude Code isn’t recognized.
Solutions:
- Restart your terminal
- Check installation:
Terminal window npm list -g @anthropic-ai/claude-code - Reinstall if needed:
Terminal window npm install -g @anthropic-ai/claude-code
Claude Code Won’t Authenticate
Section titled “Claude Code Won’t Authenticate”Problem: Can’t log in to Claude Code.
Solutions:
- Make sure you have a valid Anthropic account
- Try opening the authentication URL manually in your browser
- Check that cookies aren’t being blocked
- Try logging out and back in:
Terminal window claude logoutclaude
Claude Code is Stuck/Frozen
Section titled “Claude Code is Stuck/Frozen”Problem: Claude Code isn’t responding.
Solutions:
- Press
Ctrl + Cto cancel - Wait a moment - complex tasks can take time
- If still stuck, close the terminal and restart Claude Code
GitHub Desktop Issues
Section titled “GitHub Desktop Issues”GitHub Desktop Won’t Open/Install
Section titled “GitHub Desktop Won’t Open/Install”Problem: Can’t install or open GitHub Desktop.
Solutions:
- Windows: Make sure you’re running Windows 10 or later
- Mac: Make sure you’re running macOS 10.15 or later
- Download the latest version from desktop.github.com
- Try restarting your computer
Can’t Sign In to GitHub Desktop
Section titled “Can’t Sign In to GitHub Desktop”Problem: GitHub Desktop won’t accept your credentials.
Solutions:
- Make sure you’re using your GitHub username and password
- Check your internet connection
- If using two-factor authentication, you may need a personal access token:
- Go to GitHub.com → Settings → Developer settings → Personal access tokens
- Generate a new token with ‘repo’ scope
- Use this token as your password in GitHub Desktop
”Push Rejected” or “Can’t Push”
Section titled “”Push Rejected” or “Can’t Push””Problem: GitHub Desktop says it can’t push your changes.
Solutions:
- Click Repository → Pull to get the latest changes first
- Then try pushing again
- If still failing, check that you have internet connection
- Make sure you have permission to push to this repository
No Changes Showing Up
Section titled “No Changes Showing Up”Problem: You made changes but don’t see them in GitHub Desktop.
Solutions:
- Make sure you’ve saved your files in your code editor
- Click Repository → Refresh in GitHub Desktop
- Check that you’re looking at the correct repository (check the name at the top)
“Repository Not Found”
Section titled ““Repository Not Found””Problem: GitHub Desktop can’t find your repository.
Solutions:
- Make sure the repository exists on GitHub.com
- Try removing and re-adding the repository:
- Right-click the repository name
- Select “Remove”
- Then File → Clone Repository to add it back
Can’t See My Repository on GitHub
Section titled “Can’t See My Repository on GitHub”Problem: Pushed changes but can’t see them on GitHub.com.
Solutions:
- Make sure you clicked “Push origin” after committing
- Check that the push completed (look for the checkmark)
- Refresh the GitHub.com page in your browser
- Verify you’re looking at the correct repository and branch
Website Issues
Section titled “Website Issues”Page is Blank / Nothing Showing
Section titled “Page is Blank / Nothing Showing”Possible causes:
- JavaScript error - Check browser console (F12)
- Wrong file path - Check your HTML links
- Syntax error in HTML - Validate at validator.w3.org
CSS Not Loading
Section titled “CSS Not Loading”Solutions:
-
Check the link path:
<!-- If CSS is in same folder --><link rel="stylesheet" href="styles.css"><!-- If CSS is in a css folder --><link rel="stylesheet" href="css/styles.css"> -
Hard refresh the page:
Ctrl + Shift + R(Windows) orCmd + Shift + R(Mac) -
Check for typos in the filename (case matters!)
Images Not Showing
Section titled “Images Not Showing”Solutions:
-
Check the image path:
<!-- Same folder --><img src="photo.jpg" alt="Photo"><!-- In images folder --><img src="images/photo.jpg" alt="Photo"> -
Check the filename -
Photo.jpgis different fromphoto.jpg -
Verify the file exists in the right location
JavaScript Not Working
Section titled “JavaScript Not Working”Solutions:
-
Check browser console (F12 → Console) for red error messages
-
Make sure script is at the end of body:
<body><!-- content --><script src="script.js"></script></body> -
Check for typos in element IDs and function names
GitHub Pages Issues
Section titled “GitHub Pages Issues”404 - Page Not Found
Section titled “404 - Page Not Found”Solutions:
- Wait longer - First deployment can take 10+ minutes
- Check you have
index.htmlin the root of your repository - Verify Pages is enabled:
- Repository → Settings → Pages
- Should show “Your site is live at…”
- Check the URL - Should be
https://username.github.io/repo-name/
Site Not Updating
Section titled “Site Not Updating”Solutions:
- Wait 2-5 minutes - GitHub Pages caches aggressively
- Hard refresh:
Ctrl + Shift + R(Windows) orCmd + Shift + R(Mac) - Check Actions tab for deployment status
- Make sure you pushed:
- Open GitHub Desktop
- Look for “Push origin” button - if you see it, click it
- Changes tab should be empty (everything committed)
Mixed Content Error
Section titled “Mixed Content Error”Problem: Your site uses HTTPS but some resources use HTTP.
Solution: Change all http:// links to https:// in your code.
API Issues
Section titled “API Issues””401 Unauthorized”
Section titled “”401 Unauthorized””Problem: Invalid or missing API key.
Solutions:
- Check your API key is correct
- Make sure there are no extra spaces
- Verify the key is active in your Anthropic console
- Check environment variable is set:
Terminal window echo $ANTHROPIC_API_KEY
“429 Too Many Requests”
Section titled ““429 Too Many Requests””Problem: You’ve exceeded the rate limit.
Solutions:
- Wait a minute and try again
- Add delays between requests in your code
- Upgrade your plan if needed
”500 Internal Server Error”
Section titled “”500 Internal Server Error””Problem: Something went wrong on the API side.
Solutions:
- Wait a few minutes and try again
- Check status.anthropic.com for outages
- If persistent, contact support
General Tips
Section titled “General Tips”When Something Goes Wrong
Section titled “When Something Goes Wrong”- Read the error message - It often tells you exactly what’s wrong
- Google the error - Someone else has probably had the same problem
- Check the browser console - F12 → Console tab
- Ask Claude Code - Paste the error and ask for help
- Start small - Undo recent changes and add them back one at a time
Prevention
Section titled “Prevention”- Save often with Git commits
- Test frequently as you make changes
- Keep backups of working versions
Still Stuck?
Section titled “Still Stuck?”- Ask Claude Code - Describe your problem in detail
- Check documentation:
- Take a break - Sometimes stepping away helps!
- Ask a friend - Fresh eyes often spot the problem