GenAI Unplugged

[Free n8n] How to Install n8n on local machine using NPM Node.js

Install n8n on your local machine using npm or npx, then run it locally on Node.js for free before deploying anywhere else.

To install n8n with npm, first install Node.js 20.19 or newer, up to version 24, then run npm install n8n -g in a terminal. Start it with n8n start and open localhost:5678. This free local install has no execution limits, and npm update -g n8n updates it later.

Table of contents

Overview

This lesson is part of the n8n AI Automation - Zero to Hero course, Section: 2. Getting Started.

Watch the video above for the full tutorial, or read the written guide below.

How Do You Install n8n on Your Local Machine for Free?

You install n8n free on your own machine with npm, the Node.js package manager. n8n is open-source, so a local install runs with no execution limits and no monthly fee, unlike n8n Cloud. You need Node.js installed first: n8n supports versions 20.19 through 24.x.

How to Install n8n with npm and Node.js

Install Node.js from nodejs.org, then open a terminal and run npm install n8n -g to install n8n globally. Start it with n8n start, then open http://localhost:5678 in your browser to load the editor. To update later, run npm update -g n8n. This local instance keeps all your workflows and credentials on your own machine.

How to Try n8n with npx (No Install)

To try n8n without installing it, run npx n8n in a terminal. npx downloads everything n8n needs and starts it, then you open http://localhost:5678 the same way. Use it for a quick test, and switch to the global npm install once you keep n8n for real work.

Key Takeaways

  • Understanding the core concepts covered in this lesson
  • Practical, hands-on experience you can apply immediately
  • Tips from real-world n8n workflow implementations

Next Steps

Continue your n8n journey with the full n8n AI Automation - Zero to Hero course.

Frequently asked questions

What will I learn in this lesson?

You install n8n free by running `npm install n8n -g` after installing Node.js 20.19 or newer (up to 24.x), then starting it with `n8n start` and opening http://localhost:5678. This self-hosted local instance has no execution limits, unlike n8n Cloud.

Do I need to watch the previous lessons first?

This lesson builds on earlier concepts. If you are new to n8n, start with Lesson 1 for the best learning experience.

Can I get help if I get stuck?

Join the GenAI Unplugged community on Substack where Dheeraj answers questions and shares additional tips.

Dheeraj Sharma

AI Systems Builder
I teach founders, creators and tech teams to build production-grade AI systems, without an enterprise budget. 20 years of enterprise engineering, now in plain English.

Get the n8n Mastery Bundle

All workflows, cheat sheets, and premium resources from the entire course in one package.

Get Premium Resources