How to run my node.js project on Android?

I have a working php server on my Android tablet, so I hope it will be available to run nodejs. The source code is available on github and it can also be built on Linux, but I cannot figure out how to build it.

Thanks in advance,

+31
javascript android webserver
Jul 09 '12 at 9:45
source share
2 answers

Assembly instructions are not available on the website:

  • Download it:

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

  • Unpack it:

    tar xzf node-v0.8.1.tar.gz

  • Go to the unzipped folder:

    cd node-v0.8.1/

  • Run

    ./configure && & make && sudo make install

You may need to install some dependencies first, for example g++ or build-essential , curl and libssl-dev .

There is also an Android batch port , but it does not seem to be actively supported.

to change . Apparently, you need to change some build options to suit your device. A Google search for โ€œnode androidโ€ + your model should provide you with more details. Here they are for the G1 and Galaxy S: http://mitchtech.net/node-js-on-android-linux/

+18
Jul 09 '12 at 10:26
source share
โ€” -

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

+4
Sep 21 '15 at
source share



All Articles