Installation
This guide provides detailed instructions for installing and setting up Pika Framework on your system.
Prerequisites
System Requirements
- Operating System: macOS, Linux, or Windows
- Node.js: Version 22.0.0 or higher
- Git: For version control and cloning repositories
- Internet Connection: For downloading packages and cloning repositories
Required Software
Node.js
Pika Framework requires Node.js version 22.0.0 or higher. To check your current version:
node --version
If you need to install or update Node.js:
brew install node
pnpm Package Manager
Pika Framework uses pnpm as the required package manager (haven't used it before? try it out, it's just like npm but better)
Check if pnpm is installed:
pnpm --version
Install pnpm globally:
# Using npm
npm install -g pnpm
# Using the official installer (recommended)
curl -fsSL https://get.pnpm.io/install.sh | sh -
# On Windows (PowerShell)
iwr https://get.pnpm.io/install.ps1 -useb | iex
Git
Git is required for version control and cloning the Pika framework repository.
Check if Git is installed:
git --version
Install Git:
brew install git
Installing Pika CLI
Global Installation
Install the Pika CLI globally to access it from anywhere on your system:
pnpm install -g pika-app
Verify Installation
Check that the CLI was installed correctly:
pika --version
You should see the version number of the Pika CLI.
CLI Commands
Once installed, you'll have access to these commands:
pika create-app <name>
- Create a new Pika applicationpika sync
- Sync framework updatespika sync --help
- Get help with the sync system
Security Notice for Production
READ THIS BEFORE DEPLOYING TO PRODUCTION
Pika Framework includes a mock authentication provider for development that:
- Automatically authenticates anyone who visits your site as a test user
- Provides no real security - no passwords or validation required
- Is designed for development only - not suitable for production use
Before deploying to production:
- Implement a custom authentication provider (see Authentication Guide )
- Configure user types (
internal-user
vsexternal-user
) properly - Set chat app access controls using
userTypesAllowed
- Test your authentication thoroughly in staging
Development Environment Setup
IDE Recommendations
For the best development experience, we recommend:
VS Code or Cursor with the following extensions:
- Svelte for VS Code (
svelte.svelte-vscode
) - Svelte language support and IntelliSense - Draw.io Integration (
hediet.vscode-drawio
) - Edit .drawio files directly in VS Code - Markdown All in One (
yzhang.markdown-all-in-one
) - Enhanced Markdown support - Markdown Preview Enhanced (
shd101wyy.markdown-preview-enhanced
) - Advanced Markdown preview - Prettier - Code formatter (
esbenp.prettier-vscode
) - Automatic code formatting
Installing Recommended Extensions
- Open VS Code or Cursor
- Go to the Extensions view (Ctrl+Shift+X / Cmd+Shift+X)
- Search for each extension by name and install them
AWS CLI (Optional)
If you haven't already, you should probably install the AWS CLI:
brew install awscli
AWS CDK (Optional)
For AWS deployment, you may well also need the AWS CDK CLI:
pnpm install -g aws-cdk
Troubleshooting Installation
Common Issues
Node.js Version Issues
If you get version-related errors:
# Check your Node.js version
node --version
# If it's below 22.0.0, update Node.js
# On macOS with Homebrew:
brew upgrade node
# On Linux, reinstall from NodeSource
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
Consider installing nvm to easily switch between Node.js versions. This is especially useful if you work on multiple projects with different Node.js requirements.
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Restart your terminal or run:
source ~/.bashrc
# Install and use Node.js 22
nvm install 22
nvm use 22
nvm alias default 22
pnpm Installation Issues
If pnpm installation fails:
# Try the official installer
curl -fsSL https://get.pnpm.io/install.sh | sh -
Getting Help
If you're still experiencing issues:
- Check the troubleshooting guide for more specific solutions
- Search existing issues on the GitHub repository
- Create a new issue with details about your environment and error messages
Verification
After installation, verify everything is working:
# Check all tools are available
node --version
pnpm --version
git --version
pika --version
# Create a test application
pika create-app test-app
cd test-app
pnpm build
pnpm dev
If all commands work and you can access your application at http://localhost:3000
, your installation is complete!
Next Steps
Now that you have Pika Framework installed:
- Create your first application - Follow the Getting Started Guide
- Learn about project structure - Read Project Structure
- Start customizing - Check out the Customization Guide
Ready to create your first Pika application? Head to the Getting Started Guide !