TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Is there a possibility of installing triggercmd for termux

    General Discussion
    linux termux android
    2
    2
    231
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Arturo MartínezA
      Arturo Martínez
      last edited by

      Good afternoon, I've been trying to install termux based on arch for a few hours (I feel like it's the closest thing)
      The problem is that it marks me

      "Error: Cannot find module 'socket.io-client'
      Require stack:

      • /data/data/com.termux/files/home/TRIGGERcmd-Agent/src/agent.js
        at Module._resolveFilename (node:internal/modules/cjs/loader:1070:15)
        at Module._load (node:internal/modules/cjs/loader:923:27)
        at Module.require (node:internal/modules/cjs/loader:1137:19)
        at require (node:internal/modules/helpers:121:18)
        at Object.<anonymous> (/data/data/com.termux/files/home/TRIGGERcmd-Agent/src/agent.js:42:22)
        at Module._compile (node:internal/modules/cjs/loader:1255:14)
        at Module._extensions..js (node:internal/modules/cjs/loader:1309:10)
        at Module.load (node:internal/modules/cjs/loader:1113:32)
        at Module._load (node:internal/modules/cjs/loader:960:12)
        at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) {
        code: 'MODULE_NOT_FOUND',
        requireStack: [ '/data/data/com.termux/files/home/TRIGGERcmd-Agent/src/agent.js' ]"

      And when trying to fix the node issue, check the following

      "npm ERR! code EBADPLATFORM
      npm ERR! notsup Unsupported platform for node-windows@0.1.14: wanted {"os":"win32"} (current: {"os":"android"})
      npm ERR! notsup Valid os: win32
      npm ERR! notsup Current os: android

      npm ERR! A complete log of this run can be found in: /data/data/com.termux/files/home/.npm/_logs/2024-01-02T06_34_12_807Z-debug-0.log"

      Is there any alternative to solve this?

      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @Arturo Martínez
        last edited by Russ

        @Arturo-Martínez, your error tells me you're using the Windows version of package.json. Please try copying ubuntupackage.json to package.json and re-run npm install.

        You can see here there's a package.json file for Ubuntu, Mac, and Windows. The Ubuntu one is for Linux in general, but I use Ubuntu to build the deb and rpm file so I named it ubuntupackage.json.

        You got further than I did. I tried installing nodejs on termux on my phone and it errored because it couldn't access the built-in mirrors.

        I'm curious what commands you plan to run on your phone via the triggercmd agent if you get it working.

        Russell VanderMey

        1 Reply Last reply Reply Quote 0
        • First post
          Last post