Node.js 64 bits (on RPI4 with Debian 11)


I installed Node.js on a Raspberry Pi 4 (using Debian instructions):

curl -fsSL | bash -
apt-get install -y nodejs

I was hoping for Node.js 64 bits to be installed, but I think it’s the 32 bits version (expected arm64 with process.arch).

$ cat /etc/debian_version 
$ arch
$ node -e "console.log(process.arch)"

I found this comment from January 2021. I understand that the applications are installed in 32 bits. Is this still the case with Debian 11 Bullseye? And can we install 64-bit versions?

No change as of now, Userland remains 32Bit

Is it possible to run a program compiled for arm64 in a 32-bit userland?

This is not trivial.