How to Install n8n on Your Computer for Practice

You do not need a server to learn n8n. You can run it on your own computer. Here are the two common routes.

Option 1: Docker (recommended)

Docker keeps n8n separate from the rest of your system. Install Docker Desktop, then follow the current command from n8n’s documentation. It usually looks like this:

  1. Create a Docker volume so your data survives restarts.
  2. Run the n8n image, mapping port 5678 and attaching the volume.
  3. Open a browser at localhost on port 5678 and create your owner account.

The exact command can change, so copy it from n8n’s official docs rather than from a blog.

Option 2: npm

If you already use Node.js, n8n documents a way to run it through npm. It is quick, but you must manage Node versions yourself.

Important: keep your data

If you run n8n without a volume or data folder, you lose workflows when the container is removed. Always mount persistent storage.

Webhooks on your own computer

A workflow on localhost cannot receive calls from the internet unless you expose it. For learning, use test calls from your own machine. Details in test vs production webhook URLs.

Common mistakes

  • Forgetting the persistent volume.
  • Using an old image and following new documentation.
  • Exposing a home computer to the internet without protection.

Next steps

Build a first flow with this tutorial. When you are ready for a real server, read self-hosting with Docker.

Quick answers

Do I need Docker to run n8n?

Docker is the recommended route, but npm is another option if you already use Node.js.

Why did my workflows disappear?

You probably did not mount persistent storage, so data was lost when the container was removed.

Which port does n8n use?

By default it uses port 5678, but check the current documentation.


Related reading

Prefer feedback on your own workflows?

In our live n8n classes you build workflows alongside a trainer who reviews your work. It is a practical 15-day program for beginners to advanced learners.

See the 15-day n8n training  |  Find your city  |  Book free counselling

Want to learn n8n hands-on?

Join our 15-day live, trainer-led n8n training.

Book Free Counselling
WhatsApp Call Enquiry

Request A Callback

Talk To Our Expert

We use your details only to contact you about this training.