Last updated: Jul 22, 2025, 03:22 PM UTC

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 Code

Creates Content

Generates markdown files
AI-powered writing
Saves .md files locally

2๏ธโƒฃ Doc-Builder

Converts to Website

Transforms .md โ†’ HTML
๐ŸŒ Creates beautiful sites
Builds static files

3๏ธโƒฃ Vercel

Hosts Online

Publishes to internet
๐ŸŒ Provides URLs
๐Ÿ†“ Free hosting

graph LR A[Claude Code] -->|Creates .md files| B[Doc-Builder] B -->|Builds HTML site| C[Vercel] C -->|Hosts online| D[Live Website] style A fill:#e1f5fe style B fill:#fff3e0 style C fill:#e8f5e9 style D fill:#f3e5f5

What You'll Install

1. Node.js & npm

Package manager for JavaScript
Required for everything

2. Git for Windows

Version control system
Required for Claude Code

3. Claude Code

AI coding assistant
Generates content

4. Doc-Builder

Markdown to website tool
Optional: Publishes content


Prerequisites

Before starting, ensure you have:

  • Windows 10 or 11
  • Administrator access (for PowerShell settings)
  • Visual Studio Code installed (recommended)
  • A Claude account

Step-by-Step Installation

Step 1: Install Node.js and npm

Option A: Direct Installer (Recommended)

  1. Download Node.js

  2. Run the Installer

    • Double-click the downloaded file
    • IMPORTANT: Check "Automatically install the necessary tools"
    • Click through the installation
  3. Verify Installation

    node -v
    npm -v
    

Option B: Using nvm-windows

  1. Download nvm-windows

  2. Install nvm

    • Run the installer
    • Accept all defaults
  3. Install Node.js

    nvm install latest
    nvm use [version]
    

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:

  1. Open PowerShell as Administrator

    • Press Windows + X
    • Select "Terminal (Admin)" or "Windows PowerShell (Admin)"
    • Must be admin - regular PowerShell won't work!
  2. Change Execution Policy

    Set-ExecutionPolicy RemoteSigned
    
    • This allows local scripts and signed remote scripts
    • Type Y and press Enter
  3. 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.

  1. Download Git

  2. 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
  3. Verify Installation

    git --version
    

Step 3: Install Claude Code

  1. Install via npm

    npm install -g @anthropic/claude-code
    
  2. Launch Claude Code

    claude
    
  3. 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:

  1. Close all terminals
  2. Open a new PowerShell window
  3. Try claude again

Step 4: Set Up Visual Studio Code Integration

  1. Open VS Code
  2. Open Terminal (Terminal โ†’ New Terminal)
  3. Test Claude Code
    claude
    

Create a Working Directory

  1. Create a folder for your projects:

    mkdir C:\Users\[YourName]\Documents\websites
    cd C:\Users\[YourName]\Documents\websites
    
  2. 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

  1. Install the tool

    npm install -g @knowcode/doc-builder
    
  2. Verify Installation

    doc-builder --version
    
  3. Understanding Doc-Builder Commands

    • doc-builder build - Converts .md files to HTML
    • doc-builder deploy - Builds AND deploys to Vercel
    • doc-builder serve - Preview locally
    • Creates beautiful documentation sites from markdown

Set Up Vercel (Free Hosting)

  1. Create Vercel Account

  2. Install Vercel CLI

    npm install -g vercel
    
  3. Login to Vercel

    vercel login
    
    • Opens browser for authentication
    • Follow the prompts
  4. Understanding Vercel Commands

    • vercel - Deploy to preview URL
    • vercel --prod - Deploy to production
    • vercel domains - Manage custom domains
    • vercel env - Manage environment variables

Your First Project - Complete Workflow

Step 1: Create Documentation with Claude Code

  1. In VS Code Terminal:

    claude
    
  2. Ask Claude to create content:

    Create a comprehensive security documentation for my product
    
  3. Claude will generate markdown files in your current directory

Step 2: Convert to Website with Doc-Builder

  1. Build the website:

    doc-builder build
    
  2. Deploy to Vercel:

    doc-builder deploy
    
  3. Follow prompts:

    • Project name: my-docs
    • Accept defaults for other options

Step 3: Access Your Live Website

  1. Vercel provides URLs:

    • Preview: https://my-docs-[random].vercel.app
    • Production: https://my-docs.vercel.app
  2. Make it Public:

    • Go to Vercel Dashboard
    • Project Settings โ†’ Deployment Protection
    • Disable "Vercel Authentication"
    • Save changes

Troubleshooting Guide

Problem: "npm is not recognized"

Symptoms:

  • npm: command not found
  • PowerShell doesn't recognize npm

Solutions:

  1. Reinstall Node.js with "Add to PATH" checked
  2. Restart your computer
  3. Use Node.js command prompt instead

Problem: Claude Code Authentication Issues

Symptoms:

  • Can't login to Claude
  • "Upgrade to Claude Pro" loop

Solutions:

  1. Clear browser cookies for claude.ai
  2. Use incognito/private browsing
  3. Check you have active Pro subscription
  4. Wait 5-10 minutes if rate limited

Problem: Git Bash vs PowerShell Conflicts

Symptoms:

  • Commands work in one terminal but not another
  • Path issues

Solutions:

  1. Stick to one terminal type (PowerShell recommended)
  2. Restart VS Code after installations
  3. Check PATH environment variable

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

  1. Use Windows Terminal instead of default PowerShell

  2. Keep Everything Updated

    npm update -g
    
  3. Create Aliases for common commands in your PowerShell profile

For Claude Code

  1. Start conversations with clear intent

    • "Create a landing page for..."
    • "Generate API documentation..."
  2. Use project context

    • Keep related files in same directory
    • Claude can read and understand your project
  3. Iterate quickly

    • Don't perfect on first try
    • Ask Claude to refine

For Administrator Access

  1. Always use Admin PowerShell for:

    • Installing global npm packages
    • Changing execution policies
    • First-time tool installations
  2. 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:

  1. Check the terminal output - Error messages usually tell you what's wrong
  2. Google the exact error - Someone else has had this problem
  3. Try in a fresh terminal - Close everything and start over
  4. Run as Administrator - Some installations require elevated permissions

Common Success Path

Most users succeed by:

  1. Installing Node.js with default options
  2. Fixing PowerShell execution policy
  3. Installing Git with VS Code as editor
  4. Using PowerShell (not Git Bash) for all commands

Document History

Date Author Changes
2025-07-22 Claude Initial guide based on troubleshooting session analysis