arch
arch copied to clipboard
Add support for non-Intel architectures
I have a CLI tool that installs different binaries depending on the system architecture, and it worked fine so far for Windows, macOS and Intel GNU/Linux, but when I tried it on a Raspberry Pi, it installed the x86 binary, which obviously is not the desired effect.
Since Node.js is available on non-Intel architectures too, it would be recommended to support them too, and by all means avoid converting from one architecture to another.
It looks like the possible values for os.arch() are 'arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc', 'ppc64', 's390', 's390x', 'x32', and 'x64' based on https://nodejs.org/api/os.html#os_os_arch so we should attempt to return similar values.
I would accept a PR to add support for these additional values.
I would accept a PR to add support for these additional values.
I found an easier solution, I removed the dependency on 'arch' and reorganised my code.
This one is also an issue for me. I can provide code for my case, but I see you have an exsting PR that is 6 months old and still sitting there. Is this repo still active?
same problem. It will misleading other packages depend on this
Is this repo still active?
The most recent commit is from Oct 28, 2020.
Could someone try v3.0.0? It has #22 merged which should fix this issue.