Skip to content

Installation Guide

This guide provides comprehensive instructions for installing and setting up Pika Platform on your system with all prerequisites, recommended tools, and configuration options.

Pika Platform works on:

  • macOS (10.15+)
  • Linux (Ubuntu 20.04+, Debian 10+, CentOS 8+, or similar)
  • Windows (10+)

Minimum:

  • 4 GB RAM
  • 10 GB available disk space
  • Internet connection for package downloads

Recommended:

  • 8 GB RAM or more
  • 20 GB available disk space for comfortable development
  • Fast internet connection for AWS deployment

Check if Node.js is installed and what version:

Terminal window
node --version

If you need to install or update Node.js:

Using Homebrew:

Terminal window
brew install node

Or download from nodejs.org

Pika Platform uses pnpm as the required package manager. If you haven't used it before, you'll find it's just like npm but faster and more efficient.

Check if pnpm is installed:

Terminal window
pnpm --version

Install pnpm globally:

Terminal window
npm install -g pnpm

After installation, verify:

Terminal window
pnpm --version

Git is required for version control and cloning the Pika framework repository.

Check if Git is installed:

Terminal window
git --version

Install Git if needed:

Terminal window
brew install git

Install the Pika CLI globally to access it from anywhere on your system:

Terminal window
pnpm install -g pika-app

Check that the CLI was installed correctly:

Terminal window
pika --version

You should see the version number of the Pika CLI.

Once installed, you have access to these commands:

Terminal window
# Create a new Pika application
pika create-app <name>
# Sync framework updates to your installation
pika sync
# Get help with sync options
pika sync --help

For the best development experience, we recommend VS Code or Cursor with these extensions:

Svelte for VS Code

Extension ID: svelte.svelte-vscode

Provides Svelte language support, syntax highlighting, IntelliSense, and component navigation.

Draw.io Integration

Extension ID: hediet.vscode-drawio

Edit .drawio files directly in VS Code for creating and updating architecture diagrams.

Prettier - Code Formatter

Extension ID: esbenp.prettier-vscode

Automatic code formatting for consistent style across your project.

  1. Open VS Code or Cursor
  2. Go to Extensions view (Ctrl+Shift+X / Cmd+Shift+X)
  3. Search for each extension by name
  4. Click Install

If you plan to deploy to AWS, install the AWS CLI:

Terminal window
brew install awscli

Configure AWS CLI with your credentials:

Terminal window
aws configure

Enter your:

  • AWS Access Key ID
  • AWS Secret Access Key
  • Default region (e.g., us-east-1)
  • Output format (e.g., json)

For AWS deployment with CDK, install the AWS CDK CLI:

Terminal window
pnpm install -g aws-cdk

Verify installation:

Terminal window
cdk --version

After installing all prerequisites, create your first Pika application:

Terminal window
pika create-app my-chat-app
cd my-chat-app

Edit pika-config.ts in your project root to customize names used for AWS stacks and resources:

export const pikaConfig: PikaConfig = {
pika: {
projNameL: 'mycompany',
projNameKebabCase: 'mycompany',
projNameTitleCase: 'MyCompany',
projNameCamel: 'mycompany',
projNameHuman: 'My Company'
},
pikaChat: {
projNameL: 'mycompanychat',
projNameKebabCase: 'mycompany-chat',
projNameTitleCase: 'MyCompanyChat',
projNameCamel: 'myCompanyChat',
projNameHuman: 'My Company Chat'
}
};
Terminal window
pnpm install

This installs all dependencies for the monorepo, including all packages, services, and applications.

Verify everything is working correctly:

Terminal window
# Check all tools are available
node --version # Should show 22.0.0 or higher
pnpm --version # Should show 8.0.0 or higher
git --version # Any recent version
pika --version # Should show Pika CLI version
# Build the project
pnpm build
# Start development server
pnpm dev

If all commands complete successfully and you can access your application at http://localhost:3000, your installation is complete!

Terminal window
# Check your Node.js version
node --version
# If below 22.0.0, update Node.js

Update methods by platform:

Terminal window
brew upgrade node

If pnpm installation fails with npm:

Terminal window
# Try the official installer
curl -fsSL https://get.pnpm.io/install.sh | sh -
# On Windows PowerShell:
iwr https://get.pnpm.io/install.ps1 -useb | iex

On macOS/Linux, if you get permission errors:

Terminal window
# Don't use sudo - fix npm prefix instead
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
# Add to PATH in ~/.bashrc or ~/.zshrc
export PATH=~/.npm-global/bin:$PATH
# Reload shell config
source ~/.bashrc # or ~/.zshrc

If Git installation fails, download directly:

If the initial build fails:

Terminal window
# Clean and rebuild
pnpm clean
pnpm install --force
pnpm build

If aws configure fails:

Terminal window
# Check if AWS CLI is in PATH
which aws
# If not found, reinstall or check PATH configuration

Now that you have Pika Platform installed:

Quick Start Guide

Follow the Quick Start to get your first app running in 15 minutes.

If you encounter issues during installation:

  1. Check the troubleshooting sections above for common solutions
  2. Search existing issues on the GitHub repository
  3. Create a new issue with:
    • Your operating system and version
    • Node.js, pnpm, and Git versions
    • Complete error messages
    • Steps you've already tried

The Pika community is here to help!