Couldn't install n8n on Azure VM running Windows Server 2019

We explored three installation methods for n8n:

  • Docker – Not supported on Azure VM with Windows Server 2019 Datacenter
  • npx – Attempted multiple times over the last 2 days without success
  • npm – Also attempted multiple times without success

All approaches have been unsuccessful so far.

The reason you likely found Docker “not supported” is that Windows Server 2019 defaults to Windows Containers​, but n8n requires Linux Containers​.

  • To make Docker work on Windows Server 2019, you must enable the Hyper-V role and install Docker Desktop (or configure the Docker Engine to run Linux containers via a VM).
  • Warning​: This is significantly more complex and resource-heavy than simply using a Linux VM.

Since you are on Azure​, the most professional and stable way to run n8n is on an Ubuntu VM rather than Windows Server.

n8n is designed natively for Linux. On an Ubuntu VM, you can have it running in 5 minutes using Docker, and you will avoid all the “C++ Build Tool” headaches associated with Windows.

  • Azure Setup​: Create a new VM → Image: Ubuntu 22.04 LTS​.
  • Installation​: Just run the Docker command from the n8n docs. This is the industry standard for self-hosting n8n.

Does that help?

@kjooleng hit the nail on the head! Stand up Ubuntu in a VM, easiest and cleanest approach.

Hey @vijaybh, both paths above are solid. One thing that would help narrow down the npx/npm failures, can you share the exact error messages you saw? Windows Server npm installs often fail due to missing C++ Build Tools (needed for native node modules), which is a different fix than a Node.js version issue.

Run this and share the output:

node --version

npm --version

npm install -g n8n --verbose 2>&1 | Select-String "error"

That’ll tell us exactly where it’s failing and whether Swapnil’s approach just needs one extra fix to work on your setup.

17441 error code 1

17442 error path C:\Users\admin503034741\AppData\Roaming\npm\node_modules\n8n\node_modules\sqlite3

17443 error command failed

17444 error command C:\Windows\system32\cmd.exe /d /s /c prebuild-install -r napi || node-gyp rebuild

17445 error (node:16276) [DEP0176] DeprecationWarning: fs.R_OK is deprecated, use fs.constants.R_OK instead

17445 error (Use `node --trace-deprecation …` to show where the warning was created)

17445 error prebuild-install warn install unable to get local issuer certificate

17445 error gyp info it worked if it ends with ok

17445 error gyp info using node-gyp@8.4.1

17445 error gyp info using node@24.16.0 | win32 | x64

17445 error (node:17140) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.

17445 error (Use `node --trace-deprecation …` to show where the warning was created)

17445 error (node:17140) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.

17445 error gyp ERR! find Python

17445 error gyp ERR! find Python Python is not set from command line or npm configuration

17445 error gyp ERR! find Python Python is not set from environment variable PYTHON

17445 error gyp ERR! find Python checking if “python3” can be used

17445 error gyp ERR! find Python - “python3” is not in PATH or produced an error

17445 error gyp ERR! find Python checking if “python” can be used

17445 error gyp ERR! find Python - “python” is not in PATH or produced an error

17445 error gyp ERR! find Python checking if Python is C:\Users\admin503034741\AppData\Local\Programs\Python\Python39\python.exe

17445 error gyp ERR! find Python - “C:\Users\admin503034741\AppData\Local\Programs\Python\Python39\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe

17445 error gyp ERR! find Python - “C:\Program Files\Python39\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Users\admin503034741\AppData\Local\Programs\Python\Python39-32\python.exe

17445 error gyp ERR! find Python - “C:\Users\admin503034741\AppData\Local\Programs\Python\Python39-32\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe

17445 error gyp ERR! find Python - “C:\Program Files\Python39-32\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe

17445 error gyp ERR! find Python - “C:\Program Files (x86)\Python39-32\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Users\admin503034741\AppData\Local\Programs\Python\Python38\python.exe

17445 error gyp ERR! find Python - “C:\Users\admin503034741\AppData\Local\Programs\Python\Python38\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe

17445 error gyp ERR! find Python - “C:\Program Files\Python38\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Users\admin503034741\AppData\Local\Programs\Python\Python38-32\python.exe

17445 error gyp ERR! find Python - “C:\Users\admin503034741\AppData\Local\Programs\Python\Python38-32\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe

17445 error gyp ERR! find Python - “C:\Program Files\Python38-32\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe

17445 error gyp ERR! find Python - “C:\Program Files (x86)\Python38-32\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Users\admin503034741\AppData\Local\Programs\Python\Python37\python.exe

17445 error gyp ERR! find Python - “C:\Users\admin503034741\AppData\Local\Programs\Python\Python37\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Program Files\Python37\python.exe

17445 error gyp ERR! find Python - “C:\Program Files\Python37\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Users\admin503034741\AppData\Local\Programs\Python\Python37-32\python.exe

17445 error gyp ERR! find Python - “C:\Users\admin503034741\AppData\Local\Programs\Python\Python37-32\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Program Files\Python37-32\python.exe

17445 error gyp ERR! find Python - “C:\Program Files\Python37-32\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python37-32\python.exe

17445 error gyp ERR! find Python - “C:\Program Files (x86)\Python37-32\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Users\admin503034741\AppData\Local\Programs\Python\Python36\python.exe

17445 error gyp ERR! find Python - “C:\Users\admin503034741\AppData\Local\Programs\Python\Python36\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Program Files\Python36\python.exe

17445 error gyp ERR! find Python - “C:\Program Files\Python36\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Users\admin503034741\AppData\Local\Programs\Python\Python36-32\python.exe

17445 error gyp ERR! find Python - “C:\Users\admin503034741\AppData\Local\Programs\Python\Python36-32\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Program Files\Python36-32\python.exe

17445 error gyp ERR! find Python - “C:\Program Files\Python36-32\python.exe” could not be run

17445 error gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python36-32\python.exe

17445 error gyp ERR! find Python - “C:\Program Files (x86)\Python36-32\python.exe” could not be run

17445 error gyp ERR! find Python checking if the py launcher can be used to find Python 3

17445 error gyp ERR! find Python - “py.exe” is not in PATH or produced an error

17445 error gyp ERR! find Python

17445 error gyp ERR! find Python **********************************************************

17445 error gyp ERR! find Python You need to install the latest version of Python.

17445 error gyp ERR! find Python Node-gyp should be able to find and use Python. If not,

17445 error gyp ERR! find Python you can try one of the following options:

17445 error gyp ERR! find Python - Use the switch --python=“C:\Path\To\python.exe”

17445 error gyp ERR! find Python (accepted by both node-gyp and npm)

17445 error gyp ERR! find Python - Set the environment variable PYTHON

17445 error gyp ERR! find Python - Set the npm configuration variable python:

17445 error gyp ERR! find Python npm config set python “C:\Path\To\python.exe”

17445 error gyp ERR! find Python For more information consult the documentation at:

17445 error gyp ERR! find Python GitHub - nodejs/node-gyp: Node.js native addon build tool · GitHub

17445 error gyp ERR! find Python **********************************************************

17445 error gyp ERR! find Python

17445 error gyp ERR! configure error

17445 error gyp ERR! stack Error: Could not find any Python installation to use

17445 error gyp ERR! stack at PythonFinder.fail (C:\Users\admin503034741\AppData\Roaming\npm\node_modules\n8n\node_modules\node-gyp\lib\find-python.js:330:47)

17445 error gyp ERR! stack at PythonFinder.runChecks (C:\Users\admin503034741\AppData\Roaming\npm\node_modules\n8n\node_modules\node-gyp\lib\find-python.js:159:21)

17445 error gyp ERR! stack at PythonFinder. (C:\Users\admin503034741\AppData\Roaming\npm\node_modules\n8n\node_modules\node-gyp\lib\find-python.js:228:18)

17445 error gyp ERR! stack at PythonFinder.execFileCallback (C:\Users\admin503034741\AppData\Roaming\npm\node_modules\n8n\node_modules\node-gyp\lib\find-python.js:294:16)

17445 error gyp ERR! stack at exithandler (node:child_process:424:5)

17445 error gyp ERR! stack at ChildProcess.errorhandler (node:child_process:436:5)

17445 error gyp ERR! stack at ChildProcess.emit (node:events:509:28)

17445 error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)

17445 error gyp ERR! stack at onErrorNT (node:internal/child_process:508:16)

17445 error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

17445 error gyp ERR! System Windows_NT 10.0.17763

17445 error gyp ERR! command “C:\\Program Files\\nodejs\\node.exe” “C:\\Users\\admin503034741\\AppData\\Roaming\\npm\\node_modules\\n8n\\node_modules\\node-gyp\\bin\\node-gyp.js” “rebuild”

17445 error gyp ERR! cwd C:\Users\admin503034741\AppData\Roaming\npm\node_modules\n8n\node_modules\sqlite3

17445 error gyp ERR! node -v v24.16.0

17445 error gyp ERR! node-gyp -v v8.4.1

17445 error gyp ERR! not ok

17446 silly unfinished npm timer reify 1782904097290

17447 silly unfinished npm timer reify:build 1782905243712

17448 silly unfinished npm timer build 1782905243715

17449 silly unfinished npm timer build:deps 1782905243716

17450 silly unfinished npm timer build:run:install 1782905244402

17451 silly unfinished npm timer build:run:install:node_modules/n8n/node_modules/sqlite3 1782905246616

GitHub - nodejs/node-gyp: Node.js native addon build tool

Node.js native addon build tool. Contribute to nodejs/node-gyp development by creating an account on GitHub.

Do this

Disable strict SSL for npm (Run this in your command prompt):

npm config set strict-ssl false

Clear the npm cache​:

npm cache clean --force

Try installing n8n again​:

npm install n8n -g

Any more error?