Windows Setup Guide for Claude Code & @knowcode/doc-builder
Overview
This guide helps Windows users set up the complete AI-powered documentation workflow using Claude Code, @knowcode/doc-builder, and Vercel. Based on real troubleshooting experience, this guide addresses common Windows-specific challenges and provides clear solutions.
Quick Prerequisites Overview
Required Accounts:
- Claude Pro or Max subscription ($20-200/month) - claude.ai
- Vercel account (free Hobby plan) - vercel.com
- GitHub account (optional but recommended) - github.com
Required Software:
- Windows 10/11 with Administrator access
- Node.js 14+ and npm - nodejs.org
- Git for Windows - gitforwindows.org
- PowerShell 5.1+ (included with Windows)
- Visual Studio Code (recommended) - code.visualstudio.com
Understanding Claude vs Claude Code
What's the Difference?
Claude.ai (Web Interface):
- Browser-based chat interface
- General-purpose AI assistant
- Good for conversations and one-off tasks
- Limited file handling capabilities
Claude Code (Command-Line Tool):
- Terminal/command-line interface
- Specialized for software development
- Direct file system access
- Can read, write, and modify multiple files
- Integrated with your development workflow
- Requires Pro or Max subscription
Why Claude Code for Documentation?
Claude Code excels at:
- Reading entire codebases
- Generating multiple markdown files
- Updating existing documentation
- Creating consistent formatting
- Working directly in your project folder
The Three-Part System
Understanding the conceptual separation is crucial:
1. Claude CodePurpose: Create markdown content |
2. doc-builderPurpose: Convert MD to HTML |
3. VercelPurpose: Host the website |
Complete Prerequisites Summary
Required Accounts
Service | Purpose | Requirements | Sign Up Link |
---|---|---|---|
Claude | AI content generation | Pro ($20/mo) or Max ($200/mo) plan required | claude.ai |
GitHub | Version control | Free account (required for Vercel) | github.com |
Vercel | Free web hosting | Free Hobby account sufficient | vercel.com |
Software Requirements
Software | Version | Purpose | Required? |
---|---|---|---|
Windows | 10 or 11 | Operating system | Required |
Node.js | 14.0+ | JavaScript runtime | Required |
npm | (included) | Package manager | Required |
Git | Latest | Version control | Required |
PowerShell | 5.1+ | Command line | Required |
VS Code | Latest | Code editor | Recommended |
Administrative Requirements
- Administrator access on Windows (for PowerShell execution policy)
- Internet connection for downloading tools and deploying
- Email address for account creation
Installation Order
Step | Component | Required For | Download Link |
---|---|---|---|
1 | Node.js & npm | doc-builder | Download Node.js |
2 | Git for Windows | Claude Code | Download Git |
3 | Visual Studio Code | Development | Download VS Code |
4 | Claude Code CLI | AI content | Via npm (see below) |
5 | Vercel CLI | Deployment | Via npm (see below) |
Account Setup Checklist
Claude Account
- Sign up at claude.ai
- Subscribe to Pro ($20/mo) or Max ($200/mo) plan
- Verify email
- Note: Free plan does NOT include Claude Code access
GitHub Account (Required)
- Sign up at github.com
- Configure username and email
- Enable 2FA (recommended)
- Required for Vercel deployment
Vercel Account
- Sign up at vercel.com using GitHub
- Choose Hobby (free) plan
- Authorize Vercel to access GitHub
Step 1: Enable PowerShell Script Execution
IMPORTANT: This must be done FIRST as Administrator
Open PowerShell as Administrator
- Press
Windows + X
- Select Terminal (Admin) or Windows PowerShell (Admin)
- Click Yes when prompted by User Account Control
Enable Script Execution
Run this command in the Administrator PowerShell:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
When prompted, type Y
and press Enter.
Verify the Change
Get-ExecutionPolicy
Should return: RemoteSigned
Step 2: Install Node.js and npm
Download and Install
- Go to Node.js Downloads
- Download the Windows Installer (.msi) for your system (64-bit recommended)
- Run the installer with these settings:
- Accept the license agreement
- Default installation location
- IMPORTANT: Ensure "npm package manager" is checked
- Add to PATH (should be checked by default)
- Automatically install necessary tools (optional but recommended)
Verify Installation
Open a new PowerShell window (not as admin) and run:
node -v
npm -v
You should see version numbers for both commands.
Troubleshooting npm Issues
If you get "running scripts is disabled" error:
- You didn't enable PowerShell execution policy (go back to Step 1)
- You need to close and reopen PowerShell after installing Node.js
- Try running PowerShell as Administrator
Step 3: Install Git for Windows
Download and Install
- Go to Git for Windows
- Download the installer
- Run with these recommended settings:
- Use Visual Studio Code as default editor
- Git from the command line and also from 3rd-party software
- Use bundled OpenSSH
- Checkout Windows-style, commit Unix-style line endings
- Use Windows' default console window
Verify Installation
git --version
Step 4: Set Up Claude Code
Understanding Claude Plans
Claude Code requires a Claude Pro or Team plan subscription:
Plan | Price | Claude Code Access | Best For |
---|---|---|---|
Free | $0/month | No access | Basic chat only |
Pro | $20/month | Full access | Individual developers |
Max | $200/month | Full access | Power users, higher limits |
Important: Only Pro and Max plans include Claude Code access. The free Claude.ai plan does NOT support Claude Code. See Using Claude Code with Pro/Max Plans
Install Claude Code CLI
npm install -g @anthropic/claude-code
Initialize Claude Code
claude
Follow the prompts:
- Choose Dark mode or Light mode
- Select Login with Claude account
- Authorize in your browser
- Return to terminal when complete
Verify Setup
claude --version
Step 5: Install @knowcode/doc-builder
Global Installation (Recommended)
npm install -g @knowcode/doc-builder@latest
Verify Installation
doc-builder --version
Create Project Folder
cd Documents
mkdir my-docs-project
cd my-docs-project
Step 6: Set Up Vercel
Understanding Vercel Plans
Plan | Price | Features | Best For |
---|---|---|---|
Hobby | Free | Unlimited static sites, HTTPS, Global CDN | Personal projects, documentation |
Pro | $20/month | Team features, analytics, support | Professional use |
The free Hobby plan is perfect for documentation sites!
Create GitHub Account First
- Go to GitHub
- Click Sign Up
- Create username and verify email
- Complete account setup
Create Vercel Account (Requires GitHub)
- Go to Vercel
- Click Sign Up
- Choose Continue with GitHub (recommended)
- Authorize Vercel to access your GitHub
- Select Hobby plan (free)
Install Vercel CLI
npm install -g vercel@latest
Login to Vercel
vercel login
This will open your browser for authentication.
Step 7: Complete Workflow Example
1. Create Documentation with Claude Code
In Visual Studio Code terminal:
claude
Then ask Claude to create documentation:
Create a comprehensive technical documentation for my API including authentication, endpoints, and examples
2. Build HTML with doc-builder
doc-builder build
3. Deploy to Vercel
doc-builder deploy
First Deployment Setup Questions
You'll be prompted with several questions. Here's what each one means:
1. "Set up and deploy?" → Type Y
(Yes)
- This confirms you want to deploy your documentation to Vercel
2. "What is your project name?" → Example: my-api-docs
- This becomes your URL:
https://my-api-docs.vercel.app
- Also used as the project identifier in Vercel dashboard
Naming Requirements:
- Must be lowercase only
- Up to 100 characters long
- Can include: letters, numbers,
.
_
-
- Cannot contain:
---
(three consecutive hyphens) - Must start with a letter
Good examples: my-docs
, api-docs-v2
, team_handbook
Bad examples: My-Docs
(uppercase), 123-docs
(starts with number), my---docs
(triple hyphen)
3. "Which scope do you want to deploy to?" → Select your account
- Choose your personal account or team name
4. "Link to existing project?" → Type N
(No) for first time
- Choose
Y
only if you've already created this project before
5. "What's the name of your existing project?" → Skip if you chose No above
6. "In which directory is your code located?" → Press Enter (accepts ./
)
- doc-builder already handles this correctly
7. "Want to modify these settings?" → Type N
(No)
- The default settings are configured correctly by doc-builder
4. Make Site Public
After deployment:
- Go to Vercel Dashboard
- Click your project
- Go to Settings → Deployment Protection
- Set Vercel Authentication to Disabled
- Click Save
Your documentation is now live at https://your-project.vercel.app
!
Common Windows Issues & Solutions
PowerShell Execution Policy Error
Error: "running scripts is disabled on this system"
Solution:
# Run PowerShell as Administrator
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
See detailed guide: Resolving npm Execution Policy Error
npm Command Not Found
Causes:
- Node.js not installed properly
- PATH not updated
- Need to restart PowerShell
Solution:
- Reinstall Node.js using the official installer
- Ensure "Add to PATH" is checked during installation
- Close all PowerShell windows and open new ones
Git Bash Required Error
Error: "Claude Code requires Git bash"
Solution:
Install Git for Windows from gitforwindows.org
Vercel CLI Authentication Issues
Error: "Please login to Vercel"
Solution:
vercel logout
vercel login
Vercel Project Naming Errors
Error: "Invalid project name" or deployment fails
Common Causes:
- Project name contains uppercase letters
- Project name starts with a number
- Project name contains invalid characters
- Project name contains
---
(three hyphens)
Solution:
Use a valid project name following these rules:
- Lowercase only:
my-docs
,My-Docs
- Start with letter:
api-docs
,123-docs
- Valid characters: Letters, numbers,
.
,_
,-
- No triple hyphens:
my-cool-docs
,my---docs
Examples of valid names:
my-documentation
api-docs-v2
team_handbook
docs.myproject
Best Practices
Folder Structure
Documents/
├── my-projects/
│ ├── project1-docs/
│ │ ├── docs/ # Markdown files
│ │ ├── html/ # Generated HTML
│ │ └── doc-builder.config.js
│ └── project2-docs/
Workflow Tips
- Use Visual Studio Code - Better terminal integration
- Create separate folders for each documentation project
- Use @latest - Always use
@latest
to avoid npm cache issues - Regular commits - Use Git to track changes
Security Notes
- Run as Admin only when required - Only for PowerShell policy changes
- Keep credentials secure - Don't share Claude or Vercel tokens
- Use .gitignore - Exclude sensitive files from Git
Quick Reference Commands
Daily Workflow
# 1. Create/edit content
claude
# 2. Build HTML
doc-builder build
# 3. Deploy updates
doc-builder deploy --prod
Troubleshooting Commands
# Check installations
node -v
npm -v
git --version
claude --version
vercel --version
# Update tools
npm update -g @knowcode/doc-builder@latest
npm update -g vercel@latest
# Clear npm cache
npm cache clean --force
Additional Resources
Official Documentation
- Node.js on Windows Guide
- Vercel CLI Documentation
- Claude Code with Pro/Max Plans
- @knowcode/doc-builder on npm
Troubleshooting Guides
Conclusion
With this setup, you can create professional documentation in minutes:
- Claude Code generates the content
- doc-builder makes it beautiful
- Vercel shares it with the world
The initial setup takes about 30 minutes, but once configured, you can create and deploy documentation sites in under 5 minutes!
Need help? File issues at the respective project repositories or check the troubleshooting sections above.