Windows Installation Guide for Claude Code & Doc-Builder
Generated: 2025-07-22 15:15 UTC
Status: Complete
Verified: (for verified information) / (for speculated information)
Overview
This guide helps Windows users install Claude Code, npm, and the doc-builder tool to create AI-generated documentation and websites. Based on real troubleshooting experience, it includes solutions to common Windows-specific issues.
๐งช Understanding the Tool Separation
1๏ธโฃ Claude CodeCreates Content Generates markdown files |
2๏ธโฃ Doc-BuilderConverts to Website Transforms .md โ HTML |
3๏ธโฃ VercelHosts Online Publishes to internet |
What You'll Install
1. Node.js & npmPackage manager for JavaScript |
2. Git for WindowsVersion control system |
3. Claude CodeAI coding assistant |
4. Doc-BuilderMarkdown to website tool |
Prerequisites
Before starting, ensure you have:
- Windows 10 or 11
- Administrator access (for PowerShell settings)
- Visual Studio Code installed (recommended)
- Download: https://code.visualstudio.com/
- A Claude account
- Sign up: https://claude.ai/
- Important: Choose the right plan:
- Pro Plan ($20/month) - For personal use
- Team Plan ($30/month) - Required for team features
- Pro plan is sufficient for Claude Code
- Reference: Claude Code Plan Requirements
Step-by-Step Installation
Step 1: Install Node.js and npm
Option A: Direct Installer (Recommended)
|
Option B: Using nvm-windows
|
Common Issue: PowerShell Script Execution
If you see: "Running scripts is disabled on this system"
Why this happens: Windows blocks scripts by default for security
Fix it:
Open PowerShell as Administrator
- Press
Windows + X
- Select "Terminal (Admin)" or "Windows PowerShell (Admin)"
- Must be admin - regular PowerShell won't work!
- Press
Change Execution Policy
Set-ExecutionPolicy RemoteSigned
- This allows local scripts and signed remote scripts
- Type
Y
and press Enter
Verify the Change
Get-ExecutionPolicy
- Should show "RemoteSigned"
Detailed Guide: Resolving npm Execution Policy Error
Step 2: Install Git for Windows
Git is required for Claude Code to work properly.
Download Git
- Go to: https://gitforwindows.org/
- Alternative: https://git-scm.com/download/win
- Download the installer
Installation Options
- Default editor: Choose Visual Studio Code (if installed)
- PATH environment: Git from the command line and also from 3rd-party software
- Line ending conversions: Checkout Windows-style, commit Unix-style
- Terminal emulator: Use Windows' default console
- All other options: Accept defaults
Verify Installation
git --version
Step 3: Install Claude Code
Install via npm
npm install -g @anthropic/claude-code
Launch Claude Code
claude
Initial Setup
- Choose dark/light mode
- Select: "Claude account with subscription"
- Authorize in browser
- Subscribe to Pro if needed
Common Issue: "claude command not found"
Fix it:
- Close all terminals
- Open a new PowerShell window
- Try
claude
again
Step 4: Set Up Visual Studio Code Integration
- Open VS Code
- Open Terminal (Terminal โ New Terminal)
- Test Claude Code
claude
Create a Working Directory
Create a folder for your projects:
mkdir C:\Users\[YourName]\Documents\websites cd C:\Users\[YourName]\Documents\websites
Open this folder in VS Code:
- File โ Open Folder
- Select your new folder
Optional: Install Doc-Builder & Vercel
To publish your markdown as websites:
Install Doc-Builder
Install the tool
npm install -g @knowcode/doc-builder
- Package Info: npm - @knowcode/doc-builder
Verify Installation
doc-builder --version
Understanding Doc-Builder Commands
doc-builder build
- Converts .md files to HTMLdoc-builder deploy
- Builds AND deploys to Verceldoc-builder serve
- Preview locally- Creates beautiful documentation sites from markdown
Set Up Vercel (Free Hosting)
Create Vercel Account
- Go to: https://vercel.com/
- Sign up (free hobby plan)
Install Vercel CLI
npm install -g vercel
- Official Docs: Vercel CLI
Login to Vercel
vercel login
- Opens browser for authentication
- Follow the prompts
Understanding Vercel Commands
vercel
- Deploy to preview URLvercel --prod
- Deploy to productionvercel domains
- Manage custom domainsvercel env
- Manage environment variables
Your First Project - Complete Workflow
Step 1: Create Documentation with Claude Code
In VS Code Terminal:
claude
Ask Claude to create content:
Create a comprehensive security documentation for my product
Claude will generate markdown files in your current directory
Step 2: Convert to Website with Doc-Builder
Build the website:
doc-builder build
Deploy to Vercel:
doc-builder deploy
Follow prompts:
- Project name:
my-docs
- Accept defaults for other options
- Project name:
Step 3: Access Your Live Website
Vercel provides URLs:
- Preview:
https://my-docs-[random].vercel.app
- Production:
https://my-docs.vercel.app
- Preview:
Make it Public:
- Go to Vercel Dashboard
- Project Settings โ Deployment Protection
- Disable "Vercel Authentication"
- Save changes
Troubleshooting Guide
Problem: "npm is not recognized"
Symptoms:
|
Solutions:
|
Problem: Claude Code Authentication Issues
Symptoms:
|
Solutions:
|
Problem: Git Bash vs PowerShell Conflicts
Symptoms:
|
Solutions:
|
Installation Checklist
Use this checklist to track your progress:
- Node.js installed โ Test:
node -v
- npm working โ Test:
npm -v
- PowerShell execution policy โ Fixed if needed
- Git installed โ Test:
git --version
- Claude Code installed โ Test:
claude
- Claude Pro subscription โ Active
- VS Code configured โ Terminal working
- Working directory created โ Ready for projects
- Doc-builder installed โ Test:
doc-builder --version
- Vercel account โ Created and CLI installed
Pro Tips
For Better Performance
Use Windows Terminal instead of default PowerShell
- Download: https://aka.ms/terminal
- Better Unicode support and performance
Keep Everything Updated
npm update -g
Create Aliases for common commands in your PowerShell profile
For Claude Code
Start conversations with clear intent
- "Create a landing page for..."
- "Generate API documentation..."
Use project context
- Keep related files in same directory
- Claude can read and understand your project
Iterate quickly
- Don't perfect on first try
- Ask Claude to refine
For Administrator Access
Always use Admin PowerShell for:
- Installing global npm packages
- Changing execution policies
- First-time tool installations
Regular PowerShell is fine for:
- Running claude, doc-builder, vercel
- Creating files and folders
- Normal development work
Quick Reference Links
Tool | Official Site | Documentation |
---|---|---|
Node.js | https://nodejs.org/ | https://nodejs.org/docs |
Git | https://git-scm.com/ | https://git-scm.com/doc |
Claude | https://claude.ai/ | Plan Requirements |
VS Code | https://code.visualstudio.com/ | https://code.visualstudio.com/docs |
Vercel | https://vercel.com/ | https://vercel.com/docs |
nvm-windows | https://github.com/coreybutler/nvm-windows | GitHub README |
Doc-Builder | @knowcode/doc-builder | npm Package |
Git for Windows | https://gitforwindows.org/ | Installation Guide |
Node.js Windows | https://nodejs.org/ | Microsoft Guide |
๐ Getting Help
If you're still stuck:
- Check the terminal output - Error messages usually tell you what's wrong
- Google the exact error - Someone else has had this problem
- Try in a fresh terminal - Close everything and start over
- Run as Administrator - Some installations require elevated permissions
Common Success Path
Most users succeed by:
- Installing Node.js with default options
- Fixing PowerShell execution policy
- Installing Git with VS Code as editor
- Using PowerShell (not Git Bash) for all commands
Document History
Date | Author | Changes |
---|---|---|
2025-07-22 | Claude | Initial guide based on troubleshooting session analysis |