Post Reply

[Q] node.js npm on Android

OP egonwilzer

22nd May 2014, 03:17 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
7 posts
Join Date:Joined: Apr 2014
Hello,

I built node.js for android and it is running great.

Now i need some modules for a new project (serialport,express,socket.io) but I can't use npm on my android device, since i cross compiled node and just put the executable on the device.

Is there a way to use npm on android or what would be the best way to do it?

I also tried building the packages on an arm qemu but the modules weren't working o the android box.

What I am trying to do at the moment is including the modules as core modules when building node, but I am unsure what to include. All modules and all the modules that those modules depend on, etc. etc. This doesn't sound right?

I am following these instructions, that were for a similar problem: github / mapbox / building for android (can't post link sadly)

What would be the best way to achieve it?

Kind regards, egon
28th May 2014, 11:17 AM   |  #2  
OP Junior Member
Thanks Meter: 0
 
7 posts
Join Date:Joined: Apr 2014
I now got it running by installing debian kit on the android box.
Then I just installed node and npm from package manager and did "npm install" in my project folder which worked.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Q&A, Help & Troubleshooting by ThreadRank