npm
npm is a quick way to get started with n8n on your local machine. You must have Node.js installed. n8n requires a Node.js version between 20.19 and 24.x, inclusive.
npm
npm is a quick way to get started with n8n on your local machine. You must have Node.js installed. n8n requires a Node.js version between 20.19 and 24.x, inclusive.
Stable and Beta versions
n8n releases a new minor version most weeks. The stable version is for production use. beta is the most recent release. The beta version may be unstable. To report issues, use the forum.
Current stable: 2.0.2
Current beta: 2.1.0
Try n8n with npx
You can try n8n without installing it using npx.
From the terminal, run:
npx n8nThis command will download everything that's needed to start n8n. You can then access n8n and start building workflows by opening http://localhost.
Install globally with npm
To install n8n globally, use npm:
npm install n8n -gTo install or update to a specific version of n8n use the @ syntax to specify the version. For example:
npm install -g n8n@0.126.1To install next:
npm install -g n8n@nextAfter the installation, start n8n by running:
n8n
# or
n8n startNext steps
Try out n8n using the Quickstarts.
Updating
To update your n8n instance to the latest version, run:
npm update -g n8nTo install the next version:
npm install -g n8n@nextn8n with tunnel
Use this for local development and testing. It isn't safe to use it in production.
To use webhooks for trigger nodes of external services like GitHub, n8n has to be reachable from the web. n8n runs a tunnel service that can redirect requests from n8n's servers to your local n8n instance.
Start n8n with --tunnel by running:
n8n start --tunnelReverting an upgrade
Install the older version that you want to go back to.
If the upgrade involved a database migration:
- Check the feature documentation and release notes to see if there are any manual changes you need to make.
- Run
n8n db:reverton your current version to roll back the database. If you want to revert more than one database migration, you need to repeat this process.
Windows troubleshooting
If you are experiencing issues running n8n on Windows, make sure your Node.js environment is correctly set up. Follow Microsoft's guide to Install NodeJS on Windows.
Last updated on
