Skip to content

Prerequisites

Complete guide to all dependencies required for Claude Craft.


Required Dependencies

1. Node.js (22+)

Required for NPX installation and CLI tools. Node 20 reached EOL on April 30, 2026 — use Node 22 LTS or Node 24 LTS.

OSInstallation Command
macOSbrew install node
Ubuntu/Debiancurl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && sudo apt-get install -y nodejs
Windows WSLSame as Ubuntu
Arch Linuxsudo pacman -S nodejs npm

Verify:

bash
node --version   # Should be v22.x or higher
npm --version    # Should be v10.x or higher

2. Bash Shell

Required for installation scripts.

OSStatus
macOSPre-installed
LinuxPre-installed
WindowsUse WSL or Git Bash

Verify:

bash
bash --version

3. yq - YAML Processor

Required for YAML configuration and multi-project setups.

OSInstallation Command
macOSbrew install yq
Ubuntu/Debiansudo apt install yq or snap install yq
Windows WSLsudo apt install yq
Arch Linuxsudo pacman -S yq
Dockerdocker run --rm -v "${PWD}":/workdir mikefarah/yq

Alternative - Download Binary:

bash
# Linux amd64
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/local/bin/yq
chmod +x /usr/local/bin/yq

# macOS arm64
wget https://github.com/mikefarah/yq/releases/latest/download/yq_darwin_arm64 -O /usr/local/bin/yq
chmod +x /usr/local/bin/yq

Verify:

bash
yq --version   # Should be v4.x or higher

4. Git

Required for version control and installation from repository.

OSInstallation Command
macOSxcode-select --install or brew install git
Ubuntu/Debiansudo apt install git
Windows WSLsudo apt install git
Arch Linuxsudo pacman -S git

Verify:

bash
git --version   # Should be v2.x or higher

5. Docker

Strongly recommended for running commands in isolated environments.

OSInstallation
macOSDocker Desktop
Ubuntu/DebianSee Docker Install Guide
Windows WSLDocker Desktop with WSL2

Quick Install (Ubuntu):

bash
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
# Log out and back in

Verify:

bash
docker --version
docker compose version

6. jq - JSON Processor

Required for StatusLine tool and some advanced features.

OSInstallation Command
macOSbrew install jq
Ubuntu/Debiansudo apt install jq
Windows WSLsudo apt install jq
Arch Linuxsudo pacman -S jq

Verify:

bash
jq --version

7. Make

Required for Makefile-based installation (most common method).

OSStatus/Installation
macOSPre-installed with Xcode tools: xcode-select --install
Ubuntu/Debiansudo apt install make
Windows WSLsudo apt install make
Arch Linuxsudo pacman -S make

Verify:

bash
make --version

Claude Code

Claude Craft is designed to work with Claude Code, Anthropic's official CLI.

Important: The npm install -g method is deprecated. Use native installers below.

Installation (recommended):

bash
# macOS / Linux
curl https://install.claude.com | bash

# Windows (PowerShell)
irm https://install.claude.com/windows | iex

⚠️ Security Note: The official Claude Code installation methods above use curl | bash patterns as recommended by Anthropic. While Claude Craft implements checksum verification for RTK installation, these third-party tools (Claude Code, NVM below) follow their publishers' official installation methods. We recommend:

  • Reviewing the installer script manually before running: curl https://install.claude.com | less
  • Using package managers when available (Homebrew, winget)
  • Checking the official documentation for security best practices

Alternative methods:

bash
# macOS (Homebrew)
brew install claude-code

# Windows (winget)
winget install Anthropic.ClaudeCode

First-time setup:

bash
claude login

Automatic Prerequisites Check

Run this script to verify all prerequisites:

bash
#!/bin/bash
# Save as check-prerequisites.sh and run: bash check-prerequisites.sh

echo "Checking Claude Craft prerequisites..."
echo ""

check() {
    if command -v "$1" &> /dev/null; then
        echo "  [OK] $1: $($1 --version 2>&1 | head -n1)"
        return 0
    else
        echo "  [MISSING] $1 - $2"
        return 1
    fi
}

ERRORS=0

echo "Required:"
check "node" "Install: brew install node (macOS) or apt install nodejs (Linux)" || ((ERRORS++))
check "npm" "Comes with Node.js" || ((ERRORS++))
check "bash" "Pre-installed on most systems" || ((ERRORS++))
check "yq" "Install: brew install yq (macOS) or apt install yq (Linux)" || ((ERRORS++))
check "git" "Install: brew install git (macOS) or apt install git (Linux)" || ((ERRORS++))

echo ""
echo "Recommended:"
check "docker" "Install Docker Desktop from docker.com" || true
check "jq" "Install: brew install jq (macOS) or apt install jq (Linux)" || true
check "make" "Install: xcode-select --install (macOS) or apt install make (Linux)" || true

echo ""
if [ $ERRORS -eq 0 ]; then
    echo "All required prerequisites are installed!"
else
    echo "Missing $ERRORS required prerequisite(s). Please install them before continuing."
    exit 1
fi

Optional: LSP Plugins

LSP (Language Server Protocol) plugins give Claude Code structural code understanding — automatic diagnostics, go-to-definition, find references, and type information. Install the language server for your stack:

StackLanguage ServerInstallation
PHP / Symfony / LaravelIntelephensenpm install -g intelephense
PythonPyrightpip install pyright
TypeScript / React / Angular / Vue / RNvtslsnpm install -g @vtsls/language-server typescript
Flutter / DartDart SDK AnalyzerIncluded with Flutter SDK
C# / .NETcsharp-lsdotnet tool install -g csharp-ls

Then install the Claude Code plugin:

bash
# Official plugins
/plugins install php-lsp@claude-plugins-official
/plugins install pyright-lsp@claude-plugins-official
/plugins install typescript-lsp@claude-plugins-official
/plugins install csharp-lsp@claude-plugins-official

# Community plugin (Flutter/Dart)
/plugins install dart-analyzer@claude-code-lsps

Version Requirements Summary

ToolMinimum VersionRecommended
Node.js22.022.x LTS (24.x LTS recommandé)
npm9.010.x
yq4.04.40+
Git2.02.40+
Docker20.024.x
Docker Compose2.02.24+
jq1.51.7+
Make3.04.x
Claude Code2.1.97 (CVE-2025-59536 patched)2.1.193

Operating System Support

OSSupport LevelNotes
macOS 12+FullRecommended for development
Ubuntu 22.04+FullPrimary Linux target
Debian 12+Full
Windows 11 + WSL2FullUse Ubuntu in WSL
Arch LinuxFullCommunity tested
Windows (native)PartialSome features require WSL
Other LinuxShould workNot officially tested

Troubleshooting

yq: command not found

The most common issue. Make sure you install the correct yq (Mike Farah's version):

bash
# Check if you have the wrong yq
which yq

# If it points to /usr/bin/yq, you might have the Python version
# Install the correct one:
sudo wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/local/bin/yq
sudo chmod +x /usr/local/bin/yq

Permission denied on scripts

bash
# Make scripts executable
chmod +x Dev/scripts/*.sh

# Or use make
make fix-permissions

Docker permission denied

bash
# Add your user to docker group
sudo usermod -aG docker $USER

# Log out and back in, or run:
newgrp docker

Node.js version too old

bash
# Use nvm to manage Node versions
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
source ~/.bashrc
nvm install 22
nvm use 22

⚠️ Security Note: The NVM installation above uses the official method from nvm-sh. Consider reviewing the script before installation or using alternative methods like package managers.



RTK Installation Security

When using /common:setup-rtk or Tools/RTK/install-rtk.sh, the RTK installer is verified with SHA256 checksum before execution.

Checksum Verification

The installer script automatically verifies the RTK official installer against a pinned SHA256 hash:

bash
# Normal installation (with checksum verification)
bash Tools/RTK/install-rtk.sh

If the checksum doesn't match (installer was updated or compromised):

✗ CHECKSUM MISMATCH!
Expected: 9989e60e33a353e9e6802fab1fd410b96d1dd228b34e52402c32f3c8c2dd8c66
Got:      [different-hash]

This could indicate:
  - The RTK installer was updated (verify manually)
  - A man-in-the-middle attack

To update the checksum after manual verification:
  1. Inspect the downloaded script
  2. Update RTK_INSTALL_SHA256 in Tools/RTK/install-rtk.sh

Updating the Checksum (Manual Verification Required)

When RTK publishes a new installer version:

  1. Download and inspect the new installer:

    bash
    curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/master/install.sh -o /tmp/rtk-new.sh
    less /tmp/rtk-new.sh  # Review the changes
  2. Verify it's legitimate (check RTK GitHub releases, changelog)

  3. Calculate the new SHA256:

    bash
    sha256sum /tmp/rtk-new.sh
  4. Update the constant in Tools/RTK/install-rtk.sh:

    bash
    # Edit line ~86
    RTK_INSTALL_SHA256="[new-hash-here]"
    # Update the "Last updated" comment

Only for testing or if you've manually verified the installer:

bash
RTK_SKIP_CHECKSUM=1 bash Tools/RTK/install-rtk.sh

⚠️ Warning: Skipping checksum verification exposes you to potential supply chain attacks.


Next Steps

Once all prerequisites are installed:

  1. Follow the Quickstart Guide
  2. Or go directly to Installation Guide