T
Termux•4mo ago
ayaderaghul

How to have SQL db in termux

Hi, I would like to code a smallest possible app that fetches some data from a .db and then render on the UI with React. Is this possible with termux? My phone is redmi. Specifically, how to have .db file in termux? Install SQL?🍉
No description
No description
6 Replies
ayaderaghul
ayaderaghulOP•4mo ago
When I npm install sqlite3 it shows the attached error
Exelroad
Exelroad•4mo ago
i'm pretty sure it tell you to install python there. but i'm not sure.
Exelroad
Exelroad•4mo ago
so, i try to install sqlite3 with npm like you do and i already have python installed . now they throw this err:
gyp: Undefined variable android_ndk_path in binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/data/data/com.termux/files/home/node_modules/node-gyp/lib/configure.js:259:16)
gyp ERR! stack at ChildProcess.emit (node:events:518:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
gyp ERR! System Linux 4.19.191+
gyp ERR! command "/data/data/com.termux/files/usr/bin/node" "/data/data/com.termux/files/home/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /data/data/com.termux/files/home/node_modules/sqlite3
gyp ERR! node -v v22.15.1
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok
npm error code 1
npm error path /data/data/com.termux/files/home/node_modules/sqlite3
npm error command failed
npm error command sh -c prebuild-install -r napi || node-gyp rebuild
npm error A complete log of this run can be found in: /data/data/com.termux/files/home/.npm/_logs/2025-06-08T09_40_08_296Z-debug-0.log
gyp: Undefined variable android_ndk_path in binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/data/data/com.termux/files/home/node_modules/node-gyp/lib/configure.js:259:16)
gyp ERR! stack at ChildProcess.emit (node:events:518:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
gyp ERR! System Linux 4.19.191+
gyp ERR! command "/data/data/com.termux/files/usr/bin/node" "/data/data/com.termux/files/home/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /data/data/com.termux/files/home/node_modules/sqlite3
gyp ERR! node -v v22.15.1
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok
npm error code 1
npm error path /data/data/com.termux/files/home/node_modules/sqlite3
npm error command failed
npm error command sh -c prebuild-install -r napi || node-gyp rebuild
npm error A complete log of this run can be found in: /data/data/com.termux/files/home/.npm/_logs/2025-06-08T09_40_08_296Z-debug-0.log
which can be suppressed/ignored by following https://github.com/Automattic/node-canvas/issues/2385
GitHub
gyp: Undefined variable android_ndk_path in binding.gyp while tryin...
Issue or Feature If this is an issue with installation, I have read the troubleshooting guide. install.txt Steps to Reproduce npm install canvas --build-from-source Your Environment Version of node...
ayaderaghul
ayaderaghulOP•4mo ago
They say the architecture of android is not able to install sqlite The AI I mean
komo
komo•4mo ago
no? it means that it needs a further configuration so node-gyp can build it correctly
Exelroad
Exelroad•4mo ago
i can build it just fine yesterday, you should read the link that i give you ,

Did you find this page helpful?