Can't install jxcore-cordova

2019-08-11 07:48发布

I want to host a Node.js server on my Android device. So when looking around i stumbled over jxcore-cordova...especially this site Sitepoint How to run Node.js on Mobile

Following this tutorial i got the bat and also the sh and ran it. First i got the eror that the command jx can not be found. So i installed JXCore for Windows from here: JXCore Github Releases

Afterwards i get these errors:

module.js:2098
    throw err;
          ^
Error: Package is either corrupted or not compatible with this JX binary. (....\.jx\npmjxv311.jx)
    at Object.Module._extensions..jx (module.js:2095:15)
    at Module.load (module.js:440:36)
    at Function.Module._load (module.js:405:12)
    at Function.Module.runMain (module.js:878:12)
    at startup (node.js:485:18)
    at node.js:1604:3
Downloading the file. Please wait...

module.js:802
    throw err;
          ^
Error: Cannot find module '....\jxcore-cord
ova\hello\node_modules\download-cli\cli.js'
    at Function.Module._oldRes (module.js:800:15)
    at Function.Module._resolveFilename (module.js:1768:19)
    at Function.Module._load (module.js:360:25)
    at Function.Module.runMain (module.js:878:12)
    at startup (node.js:485:18)
    at node.js:1604:3
Der Befehl "rm" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

module.js:802
    throw err;
          ^
Error: Cannot find module '....\jxcore-cord
ova\hello\io.jxcore.node.jx'
    at Function.Module._oldRes (module.js:800:15)
    at Function.Module._resolveFilename (module.js:1768:19)
    at Function.Module._load (module.js:360:25)
    at Function.Module.runMain (module.js:878:12)
    at startup (node.js:485:18)
    at node.js:1604:3
Incorrect sample folder 'io.jxcore.node\sample\express_sample\www'.

Thinking that maybe you have to go through the "Installation" steps on the JXCore-Cordova Github page i started doing that but when executing android_compile.sh with the path to the downloaded Android NPK i get the out_android folder and some other folders but they are all empty.

Now my questions are: Am I missing something or am i doing something wrong? And is jxcore-cordova still the best (and only) way to run a node.js app on Android?

Btw: I looked through stackoverflow and found no other questions with this error. The ones that sound similar solved it with one of the things i tried and failed with. I also tried a different 2 different PCs with the install_and_run file but no difference.

0条回答
登录 后发表回答