0

I used to install nodejs12 on Raspbian by simply adding the repo and using apt:

sudo su
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt install -y nodejs

But with a fresh install of Raspbian Buster I just got this message when adding the 12.x repos:

You appear to be running on ARMv6 hardware. Unfortunately this is not currently supported by the NodeSource Linux distributions. Please use the 'linux-armv6l' binary tarballs available directly from nodejs.org for Node.js 4 and later.

So I went over to the Nodejs Downloads page, and there I found that only ARMv7 and ARMv8 builds are available, where my Raspi zero is a ARMv6.

I can of course build from source, but if possible I want to avoid doing that. Does anybody know what the current way of installing Nodejs 12 on Raspbian is?

1

As of about April last year, it seems, NodeJS support for Armv6 moved to experimental see this thread for the RFC / discussion / reasoning etc. Armv6 is still supported and maintained on an experimental basis with all the caveats that word entails. The project is hosted at github and the binaries can be downloaded from here downloads. The site is a basic engineering site so at the time of writing hasn't got the refinement of the official NodeJS downloads page but the net effect is the same: you can download a tarball with the NodeJS binaries.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.