无法安装jxcore-cordova

时间:2016-04-08 17:59:11

标签: android node.js cordova jxcore

我想在我的Android设备上托管Node.js服务器。所以当环顾四周我偶然发现了jxcore-cordova ...特别是这个网站Sitepoint How to run Node.js on Mobile

按照这个教程,我得到了蝙蝠,并且sh并运行它。首先,我得到了无法找到命令jx的错误。所以我从这里安装了JXCore for Windows:JXCore Github Releases

之后我得到了这些错误:

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

想到也许你必须经历"安装" JXCore-Cordova Github page上的步骤我开始这样做了,但是当执行android_compile.sh并获得下载的Android NPK的路径时,我得到了out_android文件夹和其他一些文件夹,但它们都是空的。

现在我的问题是: 我错过了什么或者我做错了什么? 并且jxcore-cordova仍然是在Android上运行node.js应用程序的最佳(也是唯一)方式吗?

顺便说一下:我查看了stackoverflow,发现此错误没有其他问题。那些听起来相似的东西解决了我尝试过但失败的事情之一。我还使用install_and_run文件尝试了另外两台不同的PC,但没有区别。

0 个答案:

没有答案