-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
Outdated list of architectures for process.arch
?
#41900
Comments
Related: #40576 Also: the |
Not all architectures in the code are officially supported. The project will accept code for architectures, but that does not mean they are fully supported. This page explains the support levels - https://github.com/nodejs/node/blob/master/BUILDING.md#supported-platforms Having said that, process.arch does not necessarily related to being supported or not, only what the binary you are running was build for. We could update the docs, or possibly re-write so that it says some examples are x,y,z so it would not have to be updated when an architecture is added. I'd prefer we update the doc to list everything that is now possible. |
@loretoparisi That's probably because you are running the x64 version of Node.js with Rosetta 2. |
@targos ah indeed! Which version I have to install then on apple silicon? I though I did in the usual way. Thanks! |
So assumed that I install a fresh node under a
you will come out with
anyways! So a safer way to check if we are on a Apple Silicon despite of arch switch should be const os = require('os')
let cpuCore = os.cpus()
let isIntel = cpuCore[0].model.includes("Intel")
let isM1 = cpuCore[0].model.includes("Apple") |
Seems like this was a question that's been answered. Closing but LMK if I should reopen. |
Affected URL(s)
https://nodejs.org/api/process.html
Description of the problem
I'm trying to figure out which architectures node supports since I publish binary executables esbuild for various platforms. The documentation says this:
However, the code says this:
These are the differences:
Is the documentation outdated? Are all architectures in that code officially supported by node, or only some of them?
The text was updated successfully, but these errors were encountered: