When installing Spago on a non-intel Linux platform in particular ARM64, the installation with npm succeeds, but the actual binary installed is the X86 binary, not the ARM64.
file ~/node_modules/.bin/../spago/spago
/home/andrew/node_modules/.bin/../spago/spago: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=c27524e02da020a91d6fa5c80a11a0fc42abb3a3, stripped
Installing the purescript compiler on the other hand selects and installes the correct binary.
file ~/node_modules/.bin/../purescript/purs.bin
/home/andrew/node_modules/.bin/../purescript/purs.bin: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /usr/lib/ld-linux-aarch64.so.1, for GNU/Linux 2.6.32, stripped
I think, that either the same set of binaries should be available for both spago and purs, or at least there should be a warning, that the binary is not available for this plaform.