A full Linux command line on an Android phone, ready for Node.js work, with no root needed.
- Install Termux from F-Droid.
- Update packages:
pkg update && pkg upgrade - Install a Linux distro with Andronix or
proot-distro install ubuntu - Log in:
proot-distro login ubuntu - Install tools:
apt update && apt install -y nodejs npm git - Check it works:
node -v && npm -v
server.js starts a small web server on port 3000. Run node server.js and open http://localhost:3000 in the phone's browser.