Initial Setup
Get n8n installed and create your first workflow automation. This guide walks you through installation and building your first automated workflow.
π― What You’ll Accomplish
By the end of this tutorial, you’ll have:
- β n8n installed and running locally
- β Access to the n8n workflow editor
- β Your first workflow automation created
π Prerequisites
- Node.js 18.10 or later installed
- Basic familiarity with your computer’s terminal/command line
- No prior n8n experience required
πΎ Step 1: Install n8n
Install via npm (Recommended)
npm install -g n8nInstall via Docker
docker run -it --rm \
--name n8n \
-p 5678:5678 \
-v ~/.n8n:/home/node/.n8n \
n8nio/n8nVerify Installation
n8n --versionExpected output:
1.x.xπ Step 2: Start n8n
n8n startn8n will start and you’ll see:
n8n ready on http://localhost:5678Open your web browser and navigate to http://localhost:5678.
π§ Step 3: Create Your First Workflow
Set Up Owner Account
On first launch, you’ll create an owner account:
- Enter your email and password
- Set your name
- Click “Get Started”
Create a Simple Workflow
Let’s create a workflow that runs on a schedule:
- Click “Add Workflow” or “Create New Workflow”
- Click the “+” button to add your first node
- Search for “Schedule Trigger” and select it
- Configure the schedule (e.g., every 5 minutes)
- Click “Add Node” (+) after the trigger
- Search for “HTTP Request” and select it
- Configure:
- Method: GET
- URL:
https://api.github.com/zen
- Click “Execute Node” to test
- You should see a random Zen message from GitHub
- Click “Save” and give your workflow a name
- Activate the workflow using the toggle switch
Your first automation is now running!
β Verification Checklist
Before moving forward, verify:
-
n8n --versionshows n8n installed - n8n UI loads at
http://localhost:5678 - You can create and save a workflow
- You can execute nodes and see results
π You’re Done!
You’ve successfully installed n8n and created your first workflow. You’re ready for more advanced automations.
π What’s Next?
Quick learner: n8n Quick Start
- Learn core concepts and workflow patterns
- Understand enough to build practical automations
Code-first learner: n8n By Example
Practical workflow examples covering common automation patterns
Best for learning through real-world use cases
Progressive learning path from beginner to advanced
Deep understanding of n8n’s capabilities
π Troubleshooting
Port Already in Use
Problem: “Port 5678 is already in use”
Solution: Either stop the existing n8n instance or use a different port:
n8n start --port 5679Permission Errors
Problem: “EACCES: permission denied”
Solution: On Linux/macOS, you may need to use sudo for global npm installations, or use a Node version manager like nvm.
Docker Issues
Problem: Docker container doesn’t start
Solution: Verify Docker is running and you have permission to run Docker commands. Try:
docker ps