Can't install jxcore-cordova

让人想犯罪 __ 提交于 2019-12-11 12:36:31

问题


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.

来源:https://stackoverflow.com/questions/36506305/cant-install-jxcore-cordova

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!