Skip to content

varitykit doctor

Varity Team Core Contributors Updated May 2026

Validate your development environment and identify any issues.

Terminal window
varitykit doctor [OPTIONS]

The doctor command runs 8 checks across 4 categories:

CheckRequirement
Node.js>= 16.0.0
npmAny version
gitAny version
CheckRequirement
Disk Space2GB free
Memory3GB available
CheckRequirement
varity.config.jsonPresent (warns if missing, not required for all deploy paths)
.env filePresent (optional, warns if absent)
CheckRequirement
InternetReachable
$ varitykit doctor
╭──────────────────────────────────────╮
│ Varity Environment Check │
│ Validating your development setup... │
╰──────────────────────────────────────╯
Environment Check Results
╭────────────────────────┬────────────────────────┬──────────────┬─────────────────────────╮
│ Category │ Check │ Status │ Details │
├────────────────────────┼────────────────────────┼──────────────┼─────────────────────────┤
│ Required Tools │ node │ ✓ PASS │ v22.0.0 (Required: 16+) │
│ Required Tools │ npm │ ✓ PASS │ 10.9.2 │
│ Required Tools │ git │ ✓ PASS │ 2.43.0 │
│ System │ Disk Space │ ✓ PASS │ 50GB available │
│ System │ Memory │ ✓ PASS │ 8GB available │
│ Project │ varity.config.json │ ⚠ WARN │ Not found (optional) │
│ Project │ .env File │ ⚠ WARN │ Optional │
│ Network │ Internet │ ✓ PASS │ Connected │
╰────────────────────────┴────────────────────────┴──────────────┴─────────────────────────╯
Total: 8 checks (6 pass, 2 warn)
╭───────────────────────────────────────────────────────────────────────────╮
│ Environment is ready. Run varitykit app deploy to deploy your app. │
╰───────────────────────────────────────────────────────────────────────────╯
OptionDescription
--fixAttempt to auto-fix common issues
--fullRun full diagnostics including all infrastructure checks
CodeMeaning
0All checks passed
1Some checks failed
2Critical failure (cannot proceed)
Terminal window
# macOS
brew install node
# Ubuntu
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs
# Windows
# Download from nodejs.org

If the Memory check reports a warning (requires 3GB available), you can safely continue. The warning means builds may be slower on this machine, but deployments still work.

On WSL, run wsl --shutdown and reopen to reclaim memory from the host OS if needed.

For more detailed diagnostics:

Terminal window
varitykit doctor --full

This runs all infrastructure checks in addition to the standard environment checks.