Knowledgebase

How to Install n8n on Debian 12

Search Articles

How to Install n8n on Debian 12

4 Views
Automation Debian 12 n8n Installation

How to Install n8n on Debian 12

n8n is a powerful open-source workflow automation tool. This article guides you through installing n8n on a Debian 12 server, including core prerequisites and troubleshooting advice.

Prerequisites

  • Debian 12 server (root or sudo access)
  • Basic familiarity with the Linux command line
  • Internet connection

Install Node.js

n8n requires Node.js (version 18 or higher is recommended). To install Node.js on Debian 12:

  1. Update your system:
    sudo apt update && sudo apt upgrade -y
  2. Install Node.js from the official repositories:
    sudo apt install -y nodejs npm
  3. Verify installation:
    node -v
    npm -v

Install n8n

  1. Install n8n globally using npm:
    sudo npm install n8n -g
  2. Check the installation:
    n8n --version

Running n8n

  1. Start n8n in the background:
    n8n start
  2. By default, n8n runs on http://localhost:5678.

Troubleshooting & Tips

  • Permission errors? Try installing n8n with sudo or review your npm permissions.
  • Port 5678 already in use? Change the port with export N8N_PORT=XXXX before starting n8n.
  • Check logs for errors: n8n start --tunnel can help with debugging.

Next Steps

Was this article helpful?
Views: 4