Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save shankar-narayan-k/e5c5295c3e24b72590a3037a08b46334 to your computer and use it in GitHub Desktop.

Select an option

Save shankar-narayan-k/e5c5295c3e24b72590a3037a08b46334 to your computer and use it in GitHub Desktop.
n8n_on_termux.sh #n8n #termux
#!/data/data/com.termux/files/usr/bin/sh
# TODO: Modify script to install and run n8n inside a isolated node project.
# setup
pkg install root-repo
pkg update
# install python3
pkg install python3
# install nodejs (LTS)
pkg install nodejs-lts
# build and install SQLite from source
pkg install clang libsqlite pkg-config make
npm install sqlite3 --build-from-source --sqlite=/data/data/com.termux/files/usr/bin/sqlite3 -g
# install n8n
npm install n8n -g --sqlite=/data/data/com.termux/files/usr/bin/sqlite3
# install pm2
npm install pm2 -g
# start n8n, either without webhooks ...
pm2 start n8n
# or with webhooks (i.e. in tunnel mode)
# pm2 start n8n —tunnel
# save pm2 state
pm2 save
# check status
pm2 status
# By default, n8n's admin dashboard is http://localhost:5678/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment