node-on-mobile / node-on-android

Make Node.JS apps for Android
MIT License
1.11k stars 87 forks source link

Can I use other node.js package with it? (Like websocket etc) #16

Open aeroxy opened 7 years ago

aeroxy commented 7 years ago

Can I use other node.js package with it, if so where should I store the /node_modules folder? Under /example/app?

jguillod commented 6 years ago

Did someone find the answer? Just essential…

aeroxy commented 6 years ago

Yes you can. However if you are using compiled package you might not be able to compile due to the lack of compiler or permission.

jguillod commented 6 years ago

Thanks for the "Yes"...

Can you also explain how to do it : where to install node_modules, set package dependencies, aso?

An example would be just Welcome !

aeroxy commented 6 years ago

You can either use console to install it via npm (of which you might need to install on any other linux), or you can install it on another linux and pack the whole folder and send it to your Android.

aeroxy commented 6 years ago

Oh I realized I might be answering the wrong thread. I gave up on this solution btw. I install Node on Android directly.

jguillod commented 6 years ago

@aeroxy : What do you mean by

I install Node on Android directly

A long while that I succeed installing NodeJS with Termius. But what I need is to build a standalone application running NodeJS for final users. Hacking with Termius is fine for dev test and play, but not for releasing apps through stores. So, if you have a solution, please share in details the how-to. Thanks!