Não consegui instalar n8n em VM do Azure executando Windows Server 2019

Exploramos três métodos de instalação para n8n:

  • Docker – Não é suportado em VM do Azure com Windows Server 2019 Datacenter
  • npx – Tentado múltiplas vezes nos últimos 2 dias sem sucesso
  • npm – Também tentado múltiplas vezes sem sucesso

Todas as abordagens foram malsucedidas até o momento.

A razão pela qual você provavelmente encontrou o Docker “não suportado” é que o Windows Server 2019 usa por padrão Windows Containers, mas o n8n requer Linux Containers.

  • Para fazer o Docker funcionar no Windows Server 2019, você deve ativar a função Hyper-V e instalar o Docker Desktop (ou configurar o Docker Engine para executar containers Linux via uma VM).
  • Aviso: Isso é significativamente mais complexo e pesado em recursos do que simplesmente usar uma VM Linux.

Como você está no Azure, a forma mais profissional e estável de executar o n8n é em uma VM Ubuntu em vez do Windows Server.

O n8n foi projetado nativamente para Linux. Em uma VM Ubuntu, você pode tê-lo funcionando em 5 minutos usando Docker, e evitará todos os problemas de “C++ Build Tool” associados ao Windows.

  • Configuração do Azure: Crie uma nova VM → Imagem: Ubuntu 22.04 LTS.
  • Instalação: Basta executar o comando Docker da documentação do n8n. Este é o padrão da indústria para auto-hospedagem do n8n.

Isso ajuda?

@kjooleng acertou em cheio! Colocar Ubuntu em funcionamento em uma VM é a abordagem mais fácil e limpa.

Oi @vijaybh, ambos os caminhos acima são sólidos. Uma coisa que ajudaria a estreitar as falhas de npx/npm é se você pudesse compartilhar as mensagens de erro exatas que viu? As instalações do npm no Windows Server costumam falhar devido às ferramentas de compilação C++ ausentes (necessárias para módulos nativos do node), o que é uma solução diferente de um problema de versão do Node.js.

Execute isto e compartilhe o resultado:

node --version

npm --version

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

Isso nos dirá exatamente onde está falhando e se a abordagem do Swapnil só precisa de um ajuste extra para funcionar na sua configuração.

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.

Faça isso

Desabilitar SSL rigoroso para npm (Execute isto no seu prompt de comando):

npm config set strict-ssl false

Limpar o cache do npm:

npm cache clean --force

Tente instalar o n8n novamente:

npm install n8n -g