0791.html 5.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install n8n - Open Source Workflow Automation - on Windows</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Browser Based,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,FOSS,Free Open Source Software,Free Open-Source Software,Free Software,Microsoft Windows,Open Source,Open Source Software,Open-Source,Windows,N8n,Integomat Alternative,Make Alternative,Nodemation,Graphical Software Integration,Workflow Automation,Application Integration Platform,Application Automation Platform,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install n8n - Open Source Workflow Automation - on Windows">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="07/25/2022 09:46:46 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Install n8n - Open Source Workflow Automation - on Windows</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is n8n?</h2>
  26. <blockquote><em>n8n is an extendable workflow automation tool. With a fair-code distribution model, n8n will always have visible source code, be available to self-host, and allow you to add your own custom functions, logic and apps. n8n&#39;s node-based approach makes it highly versatile, enabling you to connect anything to everything. -<a href="https://github.com/n8n-io/n8n" target="_blank">https://github.com/n8n-io/n8n</a></em></blockquote>
  27. <h2>Installing n8n</h2>
  28. <ol>
  29. <li>Log into the Windows device</li>
  30. <li>Download NodeJS <a href="https://nodejs.org/en/download/" target="_blank">Download</a></li>
  31. <li>Install NodeJS &gt; During the install, make sure to check the Tools for Native Modules option</li>
  32. <li>At the Native Modules prompt, press any key to begin the installation process<br />
  33. <span style="font-size:12px;"><em>NOTE: This process takes quite a while to install, be patient. Proceed once the PowerShell window closes</em></span></li>
  34. <li>Open File Explorer and navigate to C:\Windows\System32\LogFiles\WMI</li>
  35. <li>Right click on RtBackup &gt; Properties &gt; Security tab &gt; Click Advanced</li>
  36. <li>Click the Change option next to the Owner field &gt; Type administrators &gt; Click OK</li>
  37. <li>Check the Replace all child objects box &gt; Click OK</li>
  38. <li>Click Yes to confirm</li>
  39. <li>Click OK on all open dialog windows</li>
  40. <li>Launch PowerShell as an administrator</li>
  41. <li>Run the following commands in the PowerShell window
  42. <div class="codeBlock PS"># install n8n<br />
  43. npm install n8n --location=global<br />
  44. # test run n8n<br />
  45. npx n8n</div>
  46. </li>
  47. <li>If n8n errors out with a permissions issue, back in File Explorer, navigate to C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Windows\INetCache</li>
  48. <li>Right click on Content.IE5 &gt; Properties &gt; Security tab &gt; Click Edit...</li>
  49. <li>Select the Everyone entry &gt; Click Remove</li>
  50. <li>Click OK on all open dialog windows</li>
  51. <li>Click on the Start Button &gt; Type task &gt; Launch Task Scheduler</li>
  52. <li>Right click the Task Scheduler Library folder in the left pane &gt; Create Basic Task...</li>
  53. <li>Set the name to n8n and optionally set a Description &gt; Click Next</li>
  54. <li>For the Trigger, select When the computer starts &gt; Click Next</li>
  55. <li>For the Action, select Start a program &gt; Click Next</li>
  56. <li>Complete the form fields as follows:
  57. <p>Program/script: &quot;%ProgramFiles%\nodejs\npx.cmd&quot;<br />
  58. Add arguments: n8n</p>
  59. </li>
  60. <li>Click Next</li>
  61. <li>Check the Open the Properties dialog checkbox &gt; Click Finish</li>
  62. <li>In the Properties dialog, select Run whether user is logged on or not</li>
  63. <li>Check the Run with highest privileges box &gt; Click OK to create the scheduled task</li>
  64. <li>Right click the n8n task &gt; Run</li>
  65. <li>Open a web browser and navigate to http://DNSorIP:5678</li>
  66. <li>Complete the form with an email, first name, last name and password &gt; Click next</li>
  67. <li>Complete the questionnaire &gt; Click continue</li>
  68. <li>Click Get started</li>
  69. <li>Welcome to n8n</li>
  70. </ol>
  71. <p><em>By default, the n8n database and configuration file live in the user&#39;s profile .n8n folder (ie C:\Users\i12bretro\.n8n). To utilize a database other than SQLite, setup the database and authentication, then create a .bat file like the example below and call the .bat file as the action of the scheduled task.</em></p>
  72. <p><code>SET DB_TYPE=mysqldb<br />
  73. SET DB_MYSQLDB_DATABASE=n8n<br />
  74. SET DB_MYSQLDB_HOST=localhost<br />
  75. SET DB_MYSQLDB_USER=n8n_rw<br />
  76. SET DB_MYSQLDB_PASSWORD=n8n_N8N!<br />
  77. SET GENERIC_TIMEZONE=America/New_York<br />
  78. &quot;%programfiles%\nodejs\npx.cmd&quot; n8n</code></p>
  79. <p>Source: <a href="https://docs.n8n.io/hosting/installation/npm/" target="_blank">https://docs.n8n.io/hosting/installation/npm/</a></p> </div>
  80. </div>
  81. </body>
  82. </html>