Skip to content

Instantly share code, notes, and snippets.

@ScottJWalter
Last active July 3, 2025 14:38
Show Gist options
  • Save ScottJWalter/7a44d6d081ec065f1df7ea5aea72edf4 to your computer and use it in GitHub Desktop.
Save ScottJWalter/7a44d6d081ec065f1df7ea5aea72edf4 to your computer and use it in GitHub Desktop.
n8n_on_termux.sh #n8n #termux
#!/data/data/com.termux/files/usr/bin/sh
# 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