Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
michaelkay opened this issue Sep 29, 2017 · 6 comments · Fixed by MichaIng/nodejs-linux-installer#1

Comments

@michaelkay
Copy link

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

@dragouf
Copy link

dragouf commented Oct 1, 2017

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

@MichaIng
Copy link

MichaIng commented May 2, 2019

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

@bhaveshgohel
Copy link
Contributor

bhaveshgohel commented May 6, 2019

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).

@MichaIng
Copy link

MichaIng commented May 6, 2019

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
Copy link

PR up to solve the issue for ARMv6 and btw i386 as well, where the latest binaries are in latest-v9.x: #11
I couldn't hold myself to add some more coding, output and consistency enhancements 😉.

@MichaIng
Copy link

MichaIng commented Sep 9, 2020

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 🙂.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants