This guide will walk you through how to install and run n8n on your local machine using Node.js and optionally Docker.
π Who is this for?
Beginners who want to explore automation
Developers testing locally before deploying
Non-technical folks curious about workflow tools
π§° WHAT YOU'LL LEARN:
What is n8n?
Tools you need
How to install n8n locally on:
πͺ Windows (PowerShell)
π Mac (Terminal or Docker)
How to launch n8n and start using it
Common errors and how to fix them
BENEFITS OF SELF-HOSTING LOCALLY
Full Data Control β Your data stays on your system.
No Monthly Fees β Completely free to run.
Offline Access β Use it without internet.
Hands-On Learning β Boost your tech skills fast.
Instant Testing β Changes reflect immediately.
Customizable β Tweak it to fit your needs.
Great for Portfolios β Show real-world setup skills.
π§ 1. WHAT IS N8N?
n8n (pronounced βn-eight-nβ) is a free, open-source workflow automation tool. You can use it to connect apps, APIs, databases, and automate repetitive tasks all visually!
π§° 2. Tools Youβll Need (Both Platforms)
Tool Description
Node.js β-- Required to install and run n8n
npmβ- Comes with Node.js (used to install packages)
PowerShell (for Windows) or Terminal (forMac) β-- For running commands
Browser β-- To access your local n8n dashboard
π» 3. Installing n8n on Windows (PowerShell Method)
πΉ STEP 1: INSTALL NODE.JS
Visit: https://nodejs.org
Download the LTS (Long-Term Support) version for Windows.
Install it (leave all settings default).
To confirm installation: Open PowerShell and type:
node -v
npm -v
πΉ Step 2: Open PowerShell as Administrator
Click Start.
Search PowerShell.
Right-click β βRun as Administratorβ.
Or press the windows πͺ button + x on your keyboard and it will take you straight to power shell administrator.
πΉ STEP 3: ALLOW SCRIPTS TO RUN
Type the following and press Enter:
Set-ExecutionPolicy RemoteSigned
When prompted, type:
Y
πΉ STEP 4: INSTALL N8N GLOBALLY
In the same PowerShell window, type:
npm install -g n8n
β³ Wait for the installation to finish. It might take a few minutes.
πΉ STEP 5: RUN N8N
After installation, type:
n8n
You should see:
n8n ready on http://localhost:5678/
πΉ STEP 6: OPEN IN BROWSER
Open your browser and go to:
You're now inside n8n! π
It will prompt you to signup which is a very straightforward process.
Anytime you want to login after this time, open power shell administrator by simply pressing the windows + x buttons together on your keyboard, on the power shell windows type n8n and viola, you are in.
COMMON ERRORS & FIXES
Error Fix
π sudo: command not found (Windows) Use PowerShell as Administrator, don't use sudo
π Running scripts is disabled Run: Set-ExecutionPolicy RemoteSigned
π n8n not recognized
FIX Close and reopen terminal, or run: npx n8n
π npm WARN deprecated Safe to ignore
π Nothing happens after running n8n Be patient β it may be installing. If it returns to the prompt, use: npx n8n.
If youβre curious to learn more, replicate my setup, or build something togetherreach out! Iβm happy to share the original documentation, help troubleshoot, or even co-create with other automation enthusiasts.
π©π½βπ» Posted by Annie Fortunate
π https://www.linkedin.com/in/annie-dan
βοΈ anniefortunate11@gmail.com
Top comments (2)
Indeed, thanks for sharing!
This is a very helpful guide for everyone working with or hoping to start working with n8n.