Browse Source

0791: Install n8n - Open Source Workflow Automation - on Windows

i12bretro 2 years ago
parent
commit
c9a27c73fc
1 changed files with 89 additions and 0 deletions
  1. 89 0
      0791.html

+ 89 - 0
0791.html

@@ -0,0 +1,89 @@
+    <!DOCTYPE html>
+    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
+      <head>
+        <title>Install n8n - Open Source Workflow Automation - on Windows</title>
+        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+        <meta charset="UTF-8">
+        <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">
+        <meta name="author" content="i12bretro">
+        <meta name="description" content="Install n8n - Open Source Workflow Automation - on Windows">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <meta name="revised" content="07/25/2022 09:46:46 PM" />
+				          <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
+				  <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
+				        <script type="text/javascript" src="includes/js/steps.js"></script>
+        <link href="css/steps.css" rel="stylesheet" type="text/css" />
+      </head>
+      <body>
+        <div id="gridContainer">
+          <div class="topMargin"></div>
+          <div id="listName" class="topMargin">
+            <h1>Install n8n - Open Source Workflow Automation - on Windows</h1>
+          </div>
+          <div></div>
+          <div id="content">
+          <h2>What is n8n?</h2>
+
+<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>
+
+<h2>Installing n8n</h2>
+
+<ol>
+	<li>Log into the Windows device</li>
+	<li>Download NodeJS <a href="https://nodejs.org/en/download/" target="_blank">Download</a></li>
+	<li>Install NodeJS &gt; During the install, make sure to check the Tools for Native Modules option</li>
+	<li>At the Native Modules prompt, press any key to begin the installation process<br />
+	<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>
+	<li>Open File Explorer and navigate to C:\Windows\System32\LogFiles\WMI</li>
+	<li>Right click on RtBackup &gt; Properties &gt; Security tab &gt; Click Advanced</li>
+	<li>Click the Change option next to the Owner field &gt; Type administrators &gt; Click OK</li>
+	<li>Check the Replace all child objects box &gt; Click OK</li>
+	<li>Click Yes to confirm</li>
+	<li>Click OK on all open dialog windows</li>
+	<li>Launch PowerShell as an administrator</li>
+	<li>Run the following commands in the PowerShell window
+	<div class="codeBlock PS"># install n8n<br />
+	npm install n8n --location=global<br />
+	# test run n8n<br />
+	npx n8n</div>
+	</li>
+	<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>
+	<li>Right click on Content.IE5 &gt; Properties &gt; Security tab &gt; Click Edit...</li>
+	<li>Select the Everyone entry &gt; Click Remove</li>
+	<li>Click OK on all open dialog windows</li>
+	<li>Click on the Start Button &gt; Type task &gt; Launch Task Scheduler</li>
+	<li>Right click the Task Scheduler Library folder in the left pane &gt; Create Basic Task...</li>
+	<li>Set the name to n8n and optionally set a Description &gt; Click Next</li>
+	<li>For the Trigger, select When the computer starts &gt; Click Next</li>
+	<li>For the Action, select Start a program &gt; Click Next</li>
+	<li>Complete the form fields as follows:
+	<p>Program/script: &quot;%ProgramFiles%\nodejs\npx.cmd&quot;<br />
+	Add arguments: n8n</p>
+	</li>
+	<li>Click Next</li>
+	<li>Check the Open the Properties dialog checkbox &gt; Click Finish</li>
+	<li>In the Properties dialog, select Run whether user is logged on or not</li>
+	<li>Check the Run with highest privileges box &gt; Click OK to create the scheduled task</li>
+	<li>Right click the n8n task &gt; Run</li>
+	<li>Open a web browser and navigate to http://DNSorIP:5678</li>
+	<li>Complete the form with an email, first name, last name and password &gt; Click next</li>
+	<li>Complete the questionnaire &gt; Click continue</li>
+	<li>Click Get started</li>
+	<li>Welcome to n8n</li>
+</ol>
+
+<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>
+
+<p><code>SET DB_TYPE=mysqldb<br />
+SET DB_MYSQLDB_DATABASE=n8n<br />
+SET DB_MYSQLDB_HOST=localhost<br />
+SET DB_MYSQLDB_USER=n8n_rw<br />
+SET DB_MYSQLDB_PASSWORD=n8n_N8N!<br />
+SET GENERIC_TIMEZONE=America/New_York<br />
+&quot;%programfiles%\nodejs\npx.cmd&quot; n8n</code></p>
+
+<p>Source: <a href="https://docs.n8n.io/hosting/installation/npm/" target="_blank">https://docs.n8n.io/hosting/installation/npm/</a></p>          </div>
+        </div>
+      </body>
+    </html>
+