/n8n-tutorials

How to install n8n on macOS?

Learn how to install n8n on macOS with a simple step‑by‑step guide for fast setup, smooth automation, and an optimized workflow.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free consultation

How to install n8n on macOS?

The most reliable way to install n8n on macOS today is to run it with Docker. It isolates all dependencies, avoids Node.js version conflicts, and behaves very close to how n8n runs in real production. With Docker installed, you can start n8n with a single command and access it in your browser.

 

Recommended: Install n8n on macOS using Docker

 

Below is the simplest working setup that runs n8n locally, stores your workflows on your Mac (so they don’t disappear when you restart), and behaves predictably:

  • Install Docker Desktop for macOS from the official site
  • Create a folder to store n8n’s data (SQLite DB and files)
  • Run an n8n Docker container that mounts that folder
  • Open n8n in your browser

This command starts n8n on port 5678 and keeps all your workflows persistent on your Mac:

docker run -it \
  --name n8n \
  -p 5678:5678 \
  -v ~/n8n_data:/home/node/.n8n \
  n8nio/n8n

Once the container finishes starting, open:

http://localhost:5678

This gives you a full n8n instance running exactly like a real self‑hosted installation.

 

Alternative: Install n8n on macOS using Node.js

 

You can install n8n directly with Node.js, but it’s not what I recommend for long-term use. Still, for simple experimentation or if you are allergic to Docker, here is the valid method. First, install a supported Node.js LTS version (n8n typically supports the active LTS). Then install n8n globally:

npm install -g n8n

Start n8n:

n8n

Again, you access it at:

http://localhost:5678

Just remember: on macOS this setup stores n8n’s internal SQLite DB inside your global npm folder. It works, but it’s easy to break if you upgrade Node or reinstall global packages. Docker avoids those problems.

 

What actually happens under the hood

 

Regardless of whether you run Docker or Node directly, n8n boots an internal server (Express under the hood) on port 5678. That server hosts both the UI and REST API. n8n stores your workflows and credentials in a small SQLite database unless you configure something like Postgres. The mounted folder in the Docker example above holds that data, so you don’t lose work on restart.

If you later want production‑grade behavior (auto-restart, long-running environments, Postgres, Redis, queues), Docker is the path you’re already on. That’s why starting with Docker on macOS is not just easiest — it builds habits aligned with how real n8n deployments work.

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022