nodejs-linux-installer icon indicating copy to clipboard operation
nodejs-linux-installer copied to clipboard

The new version of Node does not include a binary for arm6l

Open michaelkay opened this issue 8 years ago • 6 comments

When running the script on a RaspberryPi Zero it fails with an error because Node v8 does not have a version for the arm6l.

michaelkay avatar Sep 29 '17 18:09 michaelkay

same problem here. It is used by dietpi and so on nothing is install on it

dragouf avatar Oct 01 '17 20:10 dragouf

According to the download page it seems to be wanted: https://nodejs.org/en/download/current/ The installer has to be adjusted then: https://github.com/taaem/nodejs-linux-installer/blob/master/node-install.sh#L29-L30

I hope this will be rethought as it breaks support for many ARM devices 🤔.


Quick fix:

  • Manually adjust installer to download latest v11:
wget https://raw.githubusercontent.com/taaem/nodejs-linux-installer/master/node-install.sh
sed -i 's|nodejs.org/dist/latest/|nodejs.org/dist/latest-v11.x/|g' node_install.sh
chmod +x node_install.sh
./node_install.sh
rm node_install.sh

MichaIng avatar May 02 '19 20:05 MichaIng

Hi @michaelkay and @taaem , Can you please look into this issue. This can fix the issue of Node.js Installation by always installing LTS version (Recommended for Most user with vast support of binaries for ARM).

bhaveshgohel avatar May 06 '19 09:05 bhaveshgohel

Aside from the finally linked PR, it does not really solve the issue. The installer is made to make automated Node installs easy. It chooses the correct archive based on your systems architecture. If "latest" this does not work for ARMv6 anymore, either it needs to exit with error prompt when armv6l is detected or it needs to adjust the download URL to use latest-v11.x. If one needs to manually choose between multiple installer scripts based on the own architecture, the whole purpose of this is broken 😉.

MichaIng avatar May 06 '19 11:05 MichaIng

PR up to solve the issue for ARMv6 and btw i386 as well, where the latest binaries are in latest-v9.x: https://github.com/taaem/nodejs-linux-installer/pull/11 I couldn't hold myself to add some more coding, output and consistency enhancements 😉.

MichaIng avatar Mar 22 '20 11:03 MichaIng

For all who land here, I polished by fork a bid which contains all required fixes including the failing download due to HTTPS redirection: https://github.com/MichaIng/nodejs-linux-installer

If you have any suggestions, feel free to open an issue or pull request over there, every contribution is highly appreciated. I'll keep the option open to commit everything back to the original project here if taaem has any interest to pickup maintenance again 🙂.

MichaIng avatar Sep 09 '20 18:09 MichaIng