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.