DEV Community

SWAPNIL AHMMED SHISHIR
SWAPNIL AHMMED SHISHIR

Posted on

🖥 Install n8n Locally on Windows – Step by Step

1. ✅ Install Node.js

  • Go to 👉 https://nodejs.org
  • Download the LTS version (Recommended for most users).
  • Install with all default settings.

To check if it installed correctly, open Command Prompt (cmd) and run:

node -v
npm -v
Enter fullscreen mode Exit fullscreen mode

You should see version numbers (e.g., v20.x.x and 10.x.x).

2. ✅ Install n8n Globally

In Command Prompt, run:

npm install n8n -g
Enter fullscreen mode Exit fullscreen mode

This will install n8n globally on your system.

3. ✅ Start n8n

Now run:

n8n
Enter fullscreen mode Exit fullscreen mode

After a few seconds, you’ll see output like:

n8n ready on http://localhost:5678/
Enter fullscreen mode Exit fullscreen mode

Open your browser and go to 👉 http://localhost:5678
🎉 n8n is now running locally!

4. ✅ Keep n8n Running

By default, n8n stops when you close Command Prompt.
To keep it running, use npx pm2 or start it in background:

npx pm2 start n8n
Enter fullscreen mode Exit fullscreen mode

5. ⚡ (Optional) Auto Start on Boot

If you want n8n to start every time you restart your PC:

npx pm2 startup
npx pm2 save
Enter fullscreen mode Exit fullscreen mode

🚀 That’s it — you’ve installed n8n locally, the easy way.

Top comments (0)