Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os.cpus() returning undefined on Android #71

Open
jaimecbernardo opened this issue May 22, 2018 · 1 comment
Open

os.cpus() returning undefined on Android #71

jaimecbernardo opened this issue May 22, 2018 · 1 comment
Assignees
Labels

Comments

@jaimecbernardo
Copy link
Member

The following error was reported by @huingZM in the gitter community channel, for nodejs-mobile on Android:

var cpu_count = require('os').cpus().length;
^
TypeError: Cannot read property 'length' of undefined

This is reported on upstream node as well: nodejs/node#19022

More information is needed on why it is failing on Android and for what API level, to verify if a solution similar for iOS is possible: #36

@jaimecbernardo
Copy link
Member Author

More information: It's reported this issue occurred on a "Nexus_5X_API_27" emulator running on MacOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant