Setup: Install and Run n8n#

This notebook walks you through installing and running n8n.

Four options (choose one):

  1. Desktop App (recommended) — easiest for beginners, no command line

  2. npm / Shell — for developers with Node.js

  3. Docker — for containerized environments

  4. n8n Cloud — no installation, runs in browser



Option 2: npm / Shell#

For developers comfortable with the terminal.

Step 1: Install Node.js (if needed)#

Requires Node.js 18.17+. Choose one method:

Using nvm (recommended):

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
nvm install 22

macOS with Homebrew:

brew install node

Or download from: nodejs.org

Step 2: Install and run n8n#

macOS/Linux:

npm install -g n8n
n8n start

macOS with Homebrew:

brew install n8n
n8n start

Windows (PowerShell):

npm install -g n8n
n8n start

Then open: http://localhost:5678

Official guide: docs.n8n.io/hosting/installation/npm


Option 3: Docker#

For containerized environments.

Step 1: Install Docker#

Download Docker Desktop: docker.com/products/docker-desktop

Step 2: Run n8n#

Open your terminal and run:

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

Step 3: Open n8n#

Go to: http://localhost:5678

Official guide: docs.n8n.io/hosting/installation/docker


Option 4: n8n Cloud#

If you don’t want to install anything, use n8n Cloud. It runs entirely in your browser.

  1. Go to n8n.io/cloud

  2. Sign up for a free trial

  3. Start building immediately

Note: The free trial has execution limits. For unlimited testing while learning, use the Desktop App or self-hosted options.

Official guide: docs.n8n.io/hosting


Troubleshooting#

Issue

Solution

Desktop App won’t start

Restart your computer and try again

Port 5678 already in use

Close other apps using that port, or restart n8n

Docker command not found

Make sure Docker Desktop is installed and running

n8n command not found (npm)

Ensure Node.js 18.17+ is installed and restart your terminal

Cannot connect to localhost:5678

Wait a few seconds after starting n8n; check for errors


Recap#

You now have n8n installed and running. The four installation options are:

  • Desktop App: Easiest, recommended for beginners

  • npm: For developers with Node.js experience

  • Docker: For containerized environments

  • Cloud: No installation needed, browser-based

Next: Proceed to 08c - n8n Quick Start to build your first AI workflow from scratch.