hokaccha/nodebrew

Not work on 'aarch64'

n-arakawa opened this issue · 1 comments

Some arm based OS such as Raspbbery OS 64bit and AWS instance type "t4g" report 'aarch64' for "uname -m".

Hope to add

    } elsif ( $machine =~ m/aarch64/ ) {
        $arch = 'arm64';

to sub system_info

I have the same issue

[opc@free-vm-1 ~]$ /home/opc/.nodebrew/current/bin/node
bash: /home/opc/.nodebrew/current/bin/node: No such file or directory

The architecture

[opc@free-vm-1 ~]$ uname -a
Linux free-vm-1 5.4.17-2136.306.1.3.el8uek.aarch64 #2 SMP Fri Apr 8 15:23:05 PDT 2022 aarch64 aarch64 aarch64 GNU/Linux

It is trying to download wrong binary I think

[opc@free-vm-1 ~]$ nodebrew install v17.9.0
Fetching: https://nodejs.org/dist/v17.9.0/node-v17.9.0-linux-armv7l.tar.gz
###############                                                                                                                                          10.1%^Cdownload failed: https://nodejs.org/dist/v17.9.0/node-v17.9.0-linux-armv7l.tar.g

I had similar issue for an inspired library here: kevincobain2000/gobrew@995d62a

The above solution mentioned by @n-arakawa is correct.