2 Replies
I am getting those error messages
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.<anonymous> (/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:317:18)
gyp ERR! stack at ChildProcess.emit (node:events:508:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
gyp ERR! System Linux 6.1.124-android14-11-g46d07bdc48df-ab14069513
gyp ERR! command "/data/data/com.termux/files/usr/bin/node" "/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /data/data/com.termux/files/usr/lib/node_modules/@google/gemini-cli/node_modules/tree-sitter-bash
gyp ERR! node -v v24.9.0
gyp ERR! node-gyp -v v11.2.0
gyp ERR! not ok
npm error code 1
npm error path /data/data/com.termux/files/usr/lib/node_modules/@google/gemini-cli/node_modules/tree-sitter-bash
npm error command failed
npm error command sh -c node-gyp-build
npm error A complete log of this run can be found in: /data/data/com.termux/files/home/.npm/_logs/2025-11-10T08_28_46_020Z-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.<anonymous> (/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:317:18)
gyp ERR! stack at ChildProcess.emit (node:events:508:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
gyp ERR! System Linux 6.1.124-android14-11-g46d07bdc48df-ab14069513
gyp ERR! command "/data/data/com.termux/files/usr/bin/node" "/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /data/data/com.termux/files/usr/lib/node_modules/@google/gemini-cli/node_modules/node-pty
gyp ERR! node -v v24.9.0
gyp ERR! node-gyp -v v11.2.0
gyp ERR! not ok me too, but install gemini-cli didn't need android ndk. you can type mkdir -p ~/.gpy and echo "{ 'variables': { 'android_ndk_path': '' } }" > ~/.gyp/include.gypi in your terminal. then you can install gemini-cli with npm install -g @google/gemini-cli