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)