Created
January 29, 2022 03:40
-
-
Save TephlonDude/3e3c70509a7257519e640c76ffa049a0 to your computer and use it in GitHub Desktop.
Manual list of commands to install n8n in Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt update | |
sudo apt upgrade | |
sudo apt install build-essential python | |
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - | |
sudo apt install nodejs | |
cd ~ | |
mkdir ~/.nodejs_global | |
npm config set prefix ~/.nodejs_global | |
echo 'export PATH=~/.nodejs_global/bin:$PATH' | tee --append ~/.profile | |
source ~/.profile | |
npm install n8n -g | |
cd ~ | |
npm install pm2@latest -g | |
pm2 start n8n | |
pm2 startup | |
# make sure to run the command mentioned in output | |
pm2 save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment