Setting up n8n locally is essential for learning, testing, and development. You have two main options: npm (Node.js) or Docker.
Option 1: npm
Requires Node.js 18+ installed on your machine. This is the simplest approach for quick experimentation.
Option 2: Docker
Docker provides isolation and easier cleanup. Recommended if you already use Docker in your development workflow.
Data Persistence
By default, n8n stores data in an SQLite database in the `~/.n8n` directory. This includes your workflows, credentials, and execution history.