INSTALL GUIDE • N8N
Install n8n with official npm docs and OS-specific commands
Exact install commands, expected output, and fail-fix blocks.
OFFICIAL DOC
Where this install comes from
Open https://docs.n8n.io/hosting/installation/npm/. This page confirms npm install and localhost:5678 default.
PREREQUISITE CHECK
Check Node.js first
node -v
npm -vExpected result: Node and npm versions print. n8n docs require Node between 20.19 and 24.x.
Troubleshooting: Install Node LTS from nodejs.org/download then rerun checks.
WINDOWS
Windows install path
npm install n8n -g
n8n --version
n8n startThen open browser and go to http://localhost:5678.
Expected result: n8n editor opens.
Troubleshooting: Run
Test-NetConnection -ComputerName localhost -Port 5678. If false, restart n8n with n8n start.MACOS
macOS install path
npm install n8n -g
n8n --version
n8n startOpen http://localhost:5678.
Expected result: n8n loads in browser.
Troubleshooting: Run
which n8n. If empty, open a new terminal and retry.LINUX
Linux install path
npm install n8n -g
n8n --version
n8n startOpen http://localhost:5678.
Expected result: n8n editor appears.
Troubleshooting: Try one-time run with
npx n8n to confirm command works.NEXT
n8n usage guide
After install, complete the use guide for real day-to-day tasks.
Open usage guide →SEQUENCE
Guides hub
See the full Install → Use → Combine path.
Open guides hub →