Skip to content

Instantly share code, notes, and snippets.

@TephlonDude
Created January 29, 2022 03:40
Show Gist options
  • Save TephlonDude/3e3c70509a7257519e640c76ffa049a0 to your computer and use it in GitHub Desktop.
Save TephlonDude/3e3c70509a7257519e640c76ffa049a0 to your computer and use it in GitHub Desktop.
Manual list of commands to install n8n in Ubuntu
#!/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