How to run my node.js project on android?

前端 未结 2 778
小蘑菇
小蘑菇 2020-12-02 15:37

I have a working php server on my android tablet, so I hope it\'s available somehow to run nodejs also. The source code is available on github, and it can be build on linux

相关标签:
2条回答
  • 2020-12-02 16:01

    The instructions for a build are missing from the website:

    1. Download it:

      wget http://nodejs.org/dist/v0.8.1/node-v0.8.1.tar.gz

    2. Unpack it:

      tar xzf node-v0.8.1.tar.gz

    3. Go to the unpacked folder:

      cd node-v0.8.1/

    4. Run

      ./configure && make && sudo make install

    You might need to install some dependencies like g++ or build-essential, curl and libssl-dev first.

    There is also a packaged Android port but it doesn't seem to be actively mantained.

    edit: apparently you need to modify some build options according to your device. A google search for "node android" + your model should give you more details. Here are they for the G1 and Galaxy S: http://mitchtech.net/node-js-on-android-linux/

    0 讨论(0)
  • 2020-12-02 16:02

    As of Sep 2015 there are Node.js 4.x distributions for ARM from https://nodejs.org/dist/latest/

    0 讨论(0)
提交回复
热议问题