Impossible d'installer n8n sur une machine virtuelle Azure exécutant Windows Server 2019

Nous avons exploré trois méthodes d’installation pour n8n :

  • Docker – Non supporté sur Azure VM avec Windows Server 2019 Datacenter
  • npx – Tenté plusieurs fois au cours des 2 derniers jours sans succès
  • npm – Également tenté plusieurs fois sans succès

Toutes les approches ont échoué jusqu’à présent.

La raison pour laquelle vous avez probablement trouvé Docker « non pris en charge » est que Windows Server 2019 est configuré par défaut pour Windows Containers​, mais n8n nécessite Linux Containers​.

  • Pour que Docker fonctionne sur Windows Server 2019, vous devez activer le rôle Hyper-V et installer Docker Desktop (ou configurer le moteur Docker pour exécuter les conteneurs Linux via une machine virtuelle).
  • Attention​ : Ceci est considérablement plus complexe et gourmand en ressources que l’utilisation simple d’une machine virtuelle Linux.

Puisque vous êtes sur Azure​, le moyen le plus professionnel et stable d’exécuter n8n est sur une machine virtuelle Ubuntu plutôt que Windows Server.

n8n est conçu nativement pour Linux. Sur une machine virtuelle Ubuntu, vous pouvez l’avoir en fonctionnement en 5 minutes avec Docker, et vous éviterez tous les tracas liés aux « outils de compilation C++ » associés à Windows.

  • Configuration Azure​ : Créer une nouvelle machine virtuelle → Image : Ubuntu 22.04 LTS​.
  • Installation​ : Il suffit d’exécuter la commande Docker de la documentation n8n. C’est la norme de l’industrie pour l’auto-hébergement de n8n.

Cela vous aide-t-il ?

@kjooleng a mis dans le mille ! Déployer Ubuntu dans une VM, c’est l’approche la plus simple et la plus propre.

Salut @vijaybh, les deux chemins ci-dessus sont solides. Un truc qui aiderait à réduire les défaillances npx/npm, tu pourrais partager les messages d’erreur exacts que tu as vus ? Les installations npm sur Windows Server échouent souvent à cause des outils C++ Build Tools manquants (nécessaires pour les modules node natifs), ce qui est une correction différente d’un problème de version Node.js.

Exécute ceci et partage le résultat :

node --version

npm --version

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

Ça nous dira exactement où ça échoue et si l’approche de Swapnil a juste besoin d’une correction supplémentaire pour fonctionner sur ta configuration.

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.

Faites cela

Désactiver SSL strict pour npm (Exécutez ceci dans votre invite de commande) :

npm config set strict-ssl false

Vider le cache npm :

npm cache clean --force

Essayer d’installer n8n à nouveau :

npm install n8n -g

Y a-t-il d’autres erreurs ?