Home/Insights/Automation

How to Install and Run N8N Locally on Your Computer | For FREE

By Ani BjörkströmPublished 23 September 2025Reviewed 17 November 20267 min video + articleAutomation

How to Install and Run N8N Locally on Your Computer | For FREE
▶ Watch the full 7-minute video · with chapters & transcript

AI TOOLS

How Do You Install and Run n8n Locally on Your Computer for Free?

In short: n8n is open-source software, so hosting it yourself on your own machine means you never pay for it; installation needs only Node.js and one npm command.

Key takeaways

  • n8n is open-source software, so hosting it yourself on your own machine means you never pay for it; installation needs only Node.js and one npm command.
  • After running "npm install -g n8n" and then "n8n", the editor is served in your browser at localhost on port 5678, like any web application.
  • Scheduled workflows only execute while n8n is running, so a local install is right for testing and learning, not for client work.

In this walkthrough, Ani Björkström, a tech consultant based in Stockholm, installs n8n from scratch on a Windows machine using nothing but the command line. Because n8n is open source, anyone willing to host it themselves can run the full product without a subscription, and the whole setup comes down to three commands.

Why do you need Node.js before installing n8n?

n8n is written in JavaScript, and Node.js is the runtime that executes JavaScript outside the browser, so n8n cannot run locally without it. To check whether it is already installed, open your command line interface and type "node -v"; if a version number comes back, you are ready, and if nothing comes back, download the installer for your operating system from nodejs.org, run it from your downloads folder, and Node.js will be installed.

CommandWhat it does
node -vConfirms whether Node.js is installed by returning its version
npm install -g n8nDownloads the latest n8n package and installs it globally on the computer
n8nStarts the software and serves the editor in the browser on port 5678

What does "npm install -g n8n" actually do?

npm, the package manager for Node.js, looks up the n8n package, finds the latest version, and installs it on your computer. The "-g" flag means global: n8n is installed machine-wide rather than tied to one specific project. If n8n is already present, running the command again simply checks for and fetches the latest version. Expect the installation to take a few minutes; in the recording it finished in four minutes, adding 31 packages and changing around 1,970, and deprecation warnings during the process can be ignored because they require no action.

How do you open n8n once it is installed?

Type "n8n" in the command prompt and hit enter. Your computer then serves the software on a standard port, which normally means localhost on port 5678, and the terminal prints a link confirming the editor is accessible; clicking it opens n8n in the browser, where you can click "create workflow" and start building.

Should you run client workflows on a local n8n install?

No, and the reason is availability. Scheduled scenarios only run while n8n itself is running, so if your computer is off, n8n is not running and cannot execute your scheduled workflow. The local setup is recommended for testing n8n and learning it, while client work needs hosting that stays on.

FAQ

Is a local n8n installation really free?

Yes. n8n is open-source software, which means that as long as you are willing to host it yourself, you do not need to pay for it.

What if "node -v" returns nothing?

That likely means Node.js is not installed. Go to nodejs.org, choose your operating system, download the installer, and run it from your downloads folder before installing n8n.

Will my scheduled workflows run overnight?

Only if the machine and n8n stay running. When the computer is off, n8n is not running and scheduled workflows cannot execute, which is why this setup suits learning rather than production use.

Want this working inside your finance team?

Ani Björkström

Ani Björkström — founder of QvantX Sweden AB, a Stockholm consultancy building AI solutions for banks, asset managers and finance teams. Anthropic partner. Every article starts from a real client build, minus the confidential parts. LinkedIn →