~ $ npm i -g codexapp
npm error code 1
npm error path /data/data/com.termux/files/usr/lib/node_modules/codexapp/node_modules/node-pty
npm error command failed
npm error command sh -c node scripts/prebuild.js || node-gyp rebuild
npm error > Checking prebuilds...
npm error > Rebuilding because directory /data/data/com.termux/files/usr/lib/node_modules/codexapp/node_modules/node-pty/prebuilds/android-arm64 does not exist
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@12.3.0
npm error gyp info using node@24.14.1 | android | arm64
npm error gyp info find Python using Python version 3.13.13 found at "/data/data/com.termux/files/usr/bin/python3"
npm error gyp http GET https://nodejs.org/download/release/v24.14.1/node-v24.14.1-headers.tar.gz
npm error gyp http 200 https://nodejs.org/download/release/v24.14.1/node-v24.14.1-headers.tar.gz
npm error gyp http GET https://nodejs.org/download/release/v24.14.1/SHASUMS256.txt
npm error gyp http 200 https://nodejs.org/download/release/v24.14.1/SHASUMS256.txt
npm error gyp info spawn /data/data/com.termux/files/usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/data/data/com.termux/files/usr/lib/node_modules/codexapp/node_modules/node-pty/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/data/data/com.termux/files/home/.cache/node-gyp/24.14.1/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/data/data/com.termux/files/home/.cache/node-gyp/24.14.1',
npm error gyp info spawn args '-Dnode_gyp_dir=/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/data/data/com.termux/files/home/.cache/node-gyp/24.14.1/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/data/data/com.termux/files/usr/lib/node_modules/codexapp/node_modules/node-pty',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp: Undefined variable android_ndk_path in binding.gyp while trying to load binding.gyp
npm error gyp ERR! configure error
npm error gyp ERR! stack Error: `gyp` failed with exit code: 1
npm error 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)
npm error gyp ERR! stack at ChildProcess.emit (node:events:508:28)
npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm error gyp ERR! System Linux 6.12.23-android16-5-g82efd98459a2-ab14457512-4k
npm error 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"
npm error gyp ERR! cwd /data/data/com.termux/files/usr/lib/node_modules/codexapp/node_modules/node-pty
npm error gyp ERR! node -v v24.14.1
npm error gyp ERR! node-gyp -v v12.3.0
npm error gyp ERR! $npm_package_name node-pty
npm error gyp ERR! $npm_package_version 1.1.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /data/data/com.termux/files/home/.npm/_logs/2026-05-02T01_11_15_604Z-debug-0.log