This repository provides a straightforward script to install n8n (the open-source automation tool) natively on Termux (Android/ARM64) without requiring root access or Docker.
Installing n8n on Termux via npm install -g n8n often fails because several Node.js modules (sqlite3, cpu-features, etc.) attempt to compile native binaries. The build process (node-gyp) detects the Android OS and incorrectly demands the android_ndk_path environment variable, which does not exist in a standard Termux environment, leading to fatal errors.
The termux-n8n.sh script automatically resolves these issues by ensuring the correct Node.js LTS version is used and configuring the build environment properly.
Follow these steps in your Termux terminal:
# Install curl to download the script
yes | pkg install curl
# Download the script from this repository
curl -o termux-n8n.sh https://raw.githubusercontent.com/DevCoreXOfficial/termux-n8n/main/termux-n8n.sh
# Make the script executable
chmod +x termux-n8n.sh
# Run the installer
bash termux-n8n.sh