@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.