Forked from ScottJWalter/gist:7a44d6d081ec065f1df7ea5aea72edf4
Last active
August 10, 2025 10:47
-
-
Save shankar-narayan-k/e5c5295c3e24b72590a3037a08b46334 to your computer and use it in GitHub Desktop.
n8n_on_termux.sh #n8n #termux
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
| #!/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