wrong download path for Node 10 on arm7l-Architecture (Rasbperry Pi 3) (no more x86 binaries)
See original GitHub issueHi! Since Node 10 NodeJs.org doesn’t provide binaries for (linux) x86 anymore. Frontend-Maven-Plugin tries to download https://nodejs.org/dist/v10.0.0/node-v10.0.0-linux-x86.tar.gz
on my Rasbperry Pi 3 (with Rasbian Operating System) which is not there anymore. It should download https://nodejs.org/dist/v10.0.0/node-v10.0.0-linux-armv7l.tar.gz
instead which is the right binary for the raspberry pi.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
Issues - GitHub
Binaries for Node 10 for Linux x86 and Raspberry Pi are missing in nodejs.org/dist/v10.0.0/ #20416 ... invalid Issues and PRs that are invalid....
Read more >Beginner's Guide to Installing Node.js on a Raspberry Pi
This tutorial is useful for anyone wishing to successfully install a Raspberry Pi 4/Pi 3/Pi 2 system, even if they are not interested...
Read more >How to install Node JS and NPM on the Raspberry Pi
Step 1: Update & Upgrade your Pi · Step 2: Determine which version of Node you need · Step 3: Download the NodeJS...
Read more >Why is Raspberry Pi OS based on debian?
Hi there! I was just curious as to why you chose to base Raspberry Pi OS on debian, rather than other distros (ubuntu,...
Read more >node-pre-gyp - npm
Node.js native addon binary install tool. Latest version: 0.17.0, last published: 2 years ago. Start using node-pre-gyp in your project by ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So there is a workaround to fix the issue:
Note: The version v10.6.0 is used as nodeVersion property in my maven plugin configuration.
The bug is in Architecture.guess() in Platform.java.
This method assumes that the system property “os.version” contains the string “v7” for the armv7l architecture. If the “v7” is not present, the fallback x86 gets selected which is clearly wrong. But on Linux, “os.version” simply contains the kernel version string, which in general does not include the platform. In my case for example, it is “5.11.2-1-ARCH”. Not sure how to fix this. Can we safely remove the ‘&& version.contains(“v7”)’ part without breaking the heuristic for another architecture/OS? I suspect this check is there for a reason.