Skip to Content
ConsolePrerequisites

Prerequisites

Before setting up Earna AI Console, ensure you have all required dependencies and accounts configured.

System Requirements

Minimum Requirements

ComponentMinimum VersionRecommendedNotes
Node.js22.0.022.17.0+Required for Next.js 15 features
pnpm9.0.09.15.0+Fast, disk-efficient package manager
Git2.30.0LatestFor version control
RAM8GB16GBFor development environment
Disk Space2GB5GBIncluding dependencies

Operating System Support

  • macOS: 12.0+ (Monterey or later)
  • Windows: Windows 10/11 with WSL2
  • Linux: Ubuntu 20.04+, Debian 11+, Fedora 35+

Required Accounts

Essential Services

  1. Supabase Account (Free tier available)

    • Sign up at supabase.com 
    • Used for: Database, Auth, Storage, Realtime
    • Free tier includes:
      • 500MB database
      • 1GB storage
      • 50,000 monthly active users
  2. OpenAI API Account (Required for GPT-4o)

    • Sign up at platform.openai.com 
    • Required for primary AI model
    • Pricing: ~$5-15 per million tokens
    • Models available: GPT-4o, GPT-4o-mini
  3. Vercel Account (For deployment)

    • Sign up at vercel.com 
    • Free tier includes:
      • 100GB bandwidth
      • Serverless functions
      • Automatic HTTPS

Optional Services

ServicePurposeFree Tier
AnthropicClaude 3 Opus model$5 free credits
Google AIGemini Pro model60 requests/minute free
HeyGenInteractive avatars1 minute free
SentryError tracking5,000 events/month
PostHogProduct analytics1M events/month

Browser Requirements

Supported Browsers

BrowserMinimum VersionSupport Status
Chrome90+✅ Tested & Supported
Safari14+✅ Tested & Supported
Edge90+⚠️ Untested
Firefox88+⚠️ Untested

Internet Explorer is not supported. Some features require modern browser APIs:

  • WebRTC for voice features
  • Web Audio API for real-time audio
  • IndexedDB for local storage

Development Tools

Visual Studio Code with extensions:

  • ESLint
  • Prettier
  • TypeScript and JavaScript
  • Tailwind CSS IntelliSense
  • Next.js snippets

Alternative IDEs

  • WebStorm (full Next.js support)
  • Cursor (AI-powered)
  • Sublime Text
  • Neovim with TypeScript LSP

Network Requirements

Ports

  • 3000: Console development server
  • 3002: Documentation server
  • 3004: Credit Engine development server
  • 3005: Apps development server
  • 54321: Supabase local development (optional)

API Endpoints

Ensure your firewall allows connections to:

  • api.openai.com (GPT-4o)
  • *.supabase.co (Backend)
  • api.anthropic.com (Claude, optional)
  • generativelanguage.googleapis.com (Gemini, optional)

Pre-installation Checklist

Before proceeding to setup, verify:

  • Node.js 22+ installed (node --version)
  • pnpm 9+ installed (pnpm --version)
  • Git configured (git --version)
  • Supabase account created
  • OpenAI API key obtained
  • 2GB+ free disk space
  • Stable internet connection

Quick Verification Script

#!/bin/bash # Save as check-prerequisites.sh echo "Checking prerequisites for Earna AI Console..." echo "=============================================" # Check Node.js NODE_VERSION=$(node -v 2>/dev/null) if [[ $NODE_VERSION == v22* ]] || [[ $NODE_VERSION == v23* ]]; then echo "✅ Node.js: $NODE_VERSION" else echo "❌ Node.js 22+ required (found: $NODE_VERSION)" fi # Check pnpm PNPM_VERSION=$(pnpm -v 2>/dev/null) if [[ $PNPM_VERSION == 9* ]] || [[ $PNPM_VERSION == 10* ]]; then echo "✅ pnpm: $PNPM_VERSION" else echo "❌ pnpm 9+ required (found: $PNPM_VERSION)" fi # Check Git if command -v git &> /dev/null; then echo "✅ Git: $(git --version)" else echo "❌ Git not found" fi # Check disk space AVAILABLE_SPACE=$(df -h . | awk 'NR==2 {print $4}') echo "📊 Available disk space: $AVAILABLE_SPACE" # Check internet connectivity if ping -c 1 api.openai.com &> /dev/null; then echo "✅ Internet connection verified" else echo "⚠️ Cannot reach api.openai.com" fi echo "=============================================" echo "Setup guide: https://docs.earna.ai/get-started"

Next Steps

Once all prerequisites are met:

  1. Setup Guide - Install and configure the console
  2. Environment Variables - Configure API keys
  3. Architecture Overview - Understand the system

Troubleshooting Prerequisites

Common Issues

Node.js Version Too Old

# Install Node.js 22 using nvm curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash nvm install 22 nvm use 22

Permission Errors on pnpm install

# Fix pnpm permissions pnpm config set store-dir ~/.pnpm-store # Clear cache if needed pnpm store prune # Reinstall dependencies pnpm install

Windows-specific Issues

  • Enable WSL2 for better compatibility
  • Use PowerShell or Git Bash, not Command Prompt
  • Disable Windows Defender for node_modules folder

For more help, see Troubleshooting Guide.

Last updated on