nodejs-mobile / nodejs-mobile

Full-fledged Node.js on Android and iOS
https://nodejs-mobile.github.io
Other
458 stars 44 forks source link

Binary doesn't return any output #79

Closed Soft-Buddy closed 4 months ago

Soft-Buddy commented 4 months ago

Version

18.17.1

Platform

android aarch64

Subsystem

No response

What steps will reproduce the bug?

Try executing the binary named node generated after build

How often does it reproduce? Is there a required condition?

It happens for all scripts that I try to execute.

What is the expected behavior? Why is that the expected behavior?

The binary should show out some sort of error message instead of being blank.

What do you see instead?

image The index.js here is a test of trying to run npm. The binary doesn't show any output at all when running scripts.

Additional information

I guess there's some sort of build flags in this repo that force the binary to behave like this. If so, kindly guide me how I can enable the logs.

Soft-Buddy commented 4 months ago

image Here, I forcefully did an error in my index.js but no output about that is received :(

staltz commented 4 months ago

If I understood correctly, you are trying to run Node.js Mobile as an executable. It's not. It's a static library.

If you want an executable Node.js on Android, try Termux and its own Node.js deployment.