0864.html 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 MacOS</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,Application Automation Platform,Application Integration Platform,FOSS,Free Open Source Software,Free Open-Source Software,Free Software,Graphical Software Integration,Integomat Alternative,Make Alternative,N8n,Nodemation,Workflow Automation,MacOS,NodeJS,MariaDB,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install n8n - Open Source Workflow Automation - on MacOS">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="12/12/2022 07:36:07 AM" />
  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 MacOS</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 Homebrew Package Manager</h2>
  28. <ol>
  29. <li>Start LaunchPad from the dock</li>
  30. <li>Search terminal &gt; Click Terminal to launch it</li>
  31. <li>Run the following commands in the terminal window
  32. <div class="codeBlock CMD"># if prompted, click install and agree to install command line tools<br />
  33. # install homebrew<br />
  34. /bin/bash -c &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;<br />
  35. # enter your password<br />
  36. # press Enter to continue</div>
  37. </li>
  38. </ol>
  39. <h2>Installing n8n</h2>
  40. <ol>
  41. <li>Run the following commands in a terminal window
  42. <div class="codeBlock CMD"># install nodejs<br />
  43. brew install node@16<br />
  44. # correct brew link to nodejs v16<br />
  45. brew unlink node<br />
  46. brew link --overwrite node@16<br />
  47. # install mariadb<br />
  48. brew install mariadb<br />
  49. # start the mariadb service<br />
  50. mysql.server start<br />
  51. # set mariadb service to autostart<br />
  52. brew services start mariadb<br />
  53. # connect to the database<br />
  54. sudo mysql -uroot</div>
  55. </li>
  56. <li>Run the following commands to create the n8n database and database user
  57. <div class="codeBlock CMD">CREATE DATABASE n8n;<br />
  58. GRANT ALL ON n8n.* to &#39;n8n_rw&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;n8n_N8N!&#39;;<br />
  59. FLUSH PRIVILEGES;<br />
  60. EXIT;</div>
  61. </li>
  62. <li>Continue with the following commands:
  63. <div class="codeBlock CMD"># set environmental variables<br />
  64. export DB_TYPE=&quot;mysqldb&quot;<br />
  65. export DB_MYSQLDB_DATABASE=&quot;n8n&quot;<br />
  66. export DB_MYSQLDB_HOST=&quot;localhost&quot;<br />
  67. export DB_MYSQLDB_USER=&quot;n8n_rw&quot;<br />
  68. export DB_MYSQLDB_PASSWORD=&#39;n8n_N8N!&#39;<br />
  69. export GENERIC_TIMEZONE=&quot;America/New_York&quot;<br />
  70. # install n8n<br />
  71. sudo npm install n8n --location=global<br />
  72. # run n8n<br />
  73. sudo n8n start</div>
  74. </li>
  75. <li>Open a web browser and navigate to http://DNSorIP:5678</li>
  76. <li>Complete the form with an email, first name, last name and password &gt; Click next</li>
  77. <li>Complete the questionnaire &gt; Click continue</li>
  78. <li>Click Get started</li>
  79. <li>Welcome to n8n</li>
  80. </ol>
  81. <p>Source: <a href="https://docs.n8n.io/hosting/installation/npm/" target="_blank">https://docs.n8n.io/hosting/installation/npm/</a></p> </div>
  82. </div>
  83. </body>
  84. </html>