-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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() returns empty array. #38190
Comments
I think that this issue was also discussed here: #19022 |
Android is self-serve.
As mention in the issue Nitzan linked to above - I suggested 2-3 workarounds for this ( #19022 (comment) ) - you are welcome to use either or (even better) open a PR |
Is a PR in libuv code should be in libuv repo directly? Or can be done here ? |
In the libuv repo :) |
`os.cpus()` can return empty arrays on platforms not officially supported by Node.js. Use 1 as a minimum. See <nodejs/node#38190>. Co-authored-by: Mark Wubben <mark@novemberborn.net>
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
it happens whenever I run
os.cpus()
What is the expected behavior?
it is supposed to print an Array of the CPUs of the phone.
What do you see instead?
I see an empty Array
[]
instead.Additional Information
I made an web app that shows system information in the browser, it works on my pc but never worked on this device.
The text was updated successfully, but these errors were encountered: