acodex-server: Unable to install acodex-server in termux
It’s seems the new update cause major error on installation on acodex-server, before everything fine there is no any error when installing it but the new update cause to break the installation process, it seems it required the android_ndk now but before it doesn’t need that. can you fix this issues.
$ npm i -g acodex-server
[##################] - reify:hono: timing reifyNode:node_modules/acod
> node-pty@1.0.0 install
> node-gyp rebuild
gyp info it worked if it ends with okming reifyNode:node_modules/acod
gyp info using node-gyp@10.0.1
gyp info using node@21.6.2 | android | arm
gyp info find Python using Python version 3.11.8 found at "/data/data/com.termux/files/usr/bin/python3"
[##################] / reify:hono: timing reifyNode:node_modules/acod
gyp info spawn /data/data/com.termux/files/usr/bin/python3odules/acod
gyp info spawn args [
gyp info spawn args '/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/data/data/com.termux/files/usr/lib/node_modules/acodex-server/node_modules/node-pty/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/data/data/com.termux/files/home/.cache/node-gyp/21.6.2/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/data/data/com.termux/files/home/.cache/node-gyp/21.6.2',
gyp info spawn args '-Dnode_gyp_dir=/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/data/data/com.termux/files/home/.cache/node-gyp/21.6.2/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/data/data/com.termux/files/usr/lib/node_modules/acodex-server/node_modules/node-pty',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp: Undefined variable android_ndk_path in binding.gyp while trying to load binding.gyp
gyp ERR! configure error ify:hono: timing reifyNode:node_modules/acod
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:271:18)
gyp ERR! stack at ChildProcess.emit (node:events:519:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
gyp ERR! System Linux 4.19.127-gfc2fca064b48-dirty
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/acodex-server/node_modules/node-pty
gyp ERR! node -v v21.6.2
gyp ERR! node-gyp -v v10.0.1
gyp ERR! not ok
npm ERR! code 1
npm ERR! path /data/data/com.termux/files/usr/lib/node_modules/acodex-server/node_modules/node-pty
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! A complete log of this run can be found in: /data/data/com.termux/files/home/.npm/_logs/2024-02-22T14_21_15_030Z-debug-0.log
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (5 by maintainers)
Thank you @bajrangCoder for fixing the bugs, you’re truly a Chad 🗿🗿🗿
It’s working bajrangCoder thanks for the instant support 🙂.Keep Inspiring.
Ahh, there is a small bug in server , within an hour I am gonna publish a patch for it.
Thanks for Reporting!
Glad to see 🥹🥹
Yes, Update your
acodex-servertov1.1.4Using :
Try this solution: https://github.com/bajrangCoder/acode-plugin-acodex/issues/56#issuecomment-1968814723