Installing PG on MacOS
Installation Guide (macOS)
This guide will help you install PG on macOS (both Intel and Apple Silicon).
macOS Support
macOS Version | Chipset | Package Manager | Support Level |
---|---|---|---|
Ventura+ | Intel / M1 / M2+ | Homebrew | ✅ Full |
Monterey | Intel / M1 | Homebrew | ✅ Full |
Big Sur | Intel / M1 | Homebrew | ⚠️ Partial |
Prerequisites
- Homebrew package manager
- Node.js v18+
- git
Installation Steps
1. Install Homebrew (if not already installed)
Run this in Terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Verify installation:
brew --version
- Install Node.js & git (CLI tools)
brew install node git
Check versions:
node -v
npm -v
git --version
- Install Optional GUI Tools (with Homebrew Cask)
If you prefer a GUI code editor or Git client, install via brew cask:
Visual Studio Code
brew install --cask visual-studio-code
GitHub Desktop
brew install --cask github
iTerm2 (better terminal)
brew install --cask iterm2
- Clone PG Repository
git clone https://github.com/pg-cv/pg.git
cd pg
- Install Dependencies
npm install
- Start PG
npm run start
You now have PG running on macOS (with optional GUI tools if installed).