isaacs / isexe

Minimal module to check if a file is executable.
ISC License
48 stars 17 forks source link

Fails on Android #17

Open avaer opened 6 years ago

avaer commented 6 years ago

Building on Android gives a process with no getuid. So it looks like this check is failing: https://github.com/isaacs/isexe/blob/master/mode.js#L26

This makes npm i impossible, since python is not considered an exe. But, python exists and otherwise works.

avaer commented 6 years ago

Hacking around this totes works, but I don't know what a clean solution to this is.