n8n Local Installation 101: A Beginner’s Blog

Affiliate/Ads disclaimer: Some links on this blog are affiliate/ads links to support this project going on, meaning I may earn a commission at no extra cost to you.


Published: November 30, 2025
Updated: November 30, 2025

Because “locally hosted” should not mean “locally haunted.”


0. Prologue – Why I wrote this

Last weekend a friend DM’d me:

“I want to automate my cat-photo newsletter, but the cloud costs more than kibble. Help?”

If you’ve ever felt the same, welcome. Below are two dead-simple ways to run n8n on your machine—explained like we’re talking over coffee, not at a Linux conference.


1. The two gardening strategies

StrategyAnalogyTech translation
A. Docker One-PotBuy a ready-made succulentDownload a pre-built image, press “play,”
B. npm Seed-to-PlantSow seeds in your backyardInstall Node.js, then npm install -g n8n

Pick ONE. Both end with the same blooming interface at http://localhost:5678.


2. Route A – Docker One-Pot Method (5 min)

StepWhat you doCoffee-shop analogy
1Install Docker DesktopWalk into the “flower-shop app”; it’s free for personal use
2Pull the n8n imagePoint at the prettiest succulent and say, “I’ll take that one.”
3Create a data folderChoose a sunny windowsill (e.g. D:\n8n-data)
4Run the containerPlace the pot on the sill; water once (the command below)
5Open browser → http://localhost:5678Smell the flowers.

Copy-paste command (PowerShell / Terminal):

docker run -d --name n8n -p 5678:5678 ^
  -v D:\n8n-data:/home/node/.n8n ^
  -e N8N_BASIC_AUTH_ACTIVE=true ^
  -e N8N_BASIC_AUTH_USER=admin ^
  -e N8N_BASIC_AUTH_PASSWORD=cat123 ^
  n8nio/n8n

Flags translated:
-d = run in background (minimize window)
-p = open window #5678 so your browser can peek in
-v = glue the plant to your windowsill (persistent data)
-e = optional sticky notes: “Keep the gate closed, password is cat123”


3. Route B – npm Seed-to-Plant Method (7 min)

StepWhat you doBackyard analogy
1Install Node.js LTSTill the soil (grab the installer at nodejs.org)
2npm install -g n8nSprinkle seeds
3n8n startWater and wait 10 s
4Browse to http://localhost:5678First sprout appears
5(Optional) n8n export:workflow --allSave seeds for next season

Where does n8n store my “tomatoes”?

  • Windows: C:\Users\<you>\.n8n
  • macOS/Linux: ~/.n8n
    Back that folder up before you reinstall the OS.

4. TL;DR – Which route should I pick?

ScenarioPickOne-liner reason
“I just want it to work.”DockerTwo copy-pastes, done.
Corporate laptop blocks DockernpmOnly needs Node.js—no admin rights? Use a Node version manager.
Hobby dev who loves source codenpmwhich n8n → edit files live.

5. Common rookie traps (and the quick escape)

TrapSymptomFix
Port 5678 already in useBrowser spins foreverChange to 6688: docker run … -p 6688:5678 …
Chinese or space in folder pathDocker screams “invalid mount”Move to D:\n8n-data
Shut laptop, n8n gone (npm)“Connection refused” next dayRun n8n start again, or set up PM2 / systemd service
Forgot passwordYou set cat123 but now…?docker exec -it n8n sh then n8n user-management:reset

6. Upgrading without tears

MethodUpgrade one-liner
Dockerdocker pull n8nio/n8n:latest && docker stop n8n && docker rm n8n && (re-run the run command)
npmnpm update -g n8n

7. Epilogue – Go automate something cute

Whether you chose the instant succulent or the home-grown tomato, you now own a private, free, fully-functioning automation greenhouse.
Next tutorial: “How to email yourself a daily cat GIF using n8n and 0 lines of code.”
Stay tuned, and happy gardening!

Leave a Reply

Your email address will not be published. Required fields are marked *