question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

wrong download path for Node 10 on arm7l-Architecture (Rasbperry Pi 3) (no more x86 binaries)

See original GitHub issue

Hi! 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:open
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
lazabazsacommented, Aug 1, 2018

So there is a workaround to fix the issue:

  1. Download the proper node version for your RPi. I have a RPi 3, so I downloaded https://nodejs.org/dist/v10.6.0/node-v10.6.0-linux-armv7l.tar.gz
  2. Extract the folder which is in the file
  3. Rename the extracted folder node-v10.6.0-linux-armv7l to node-v10.6.0-linux-x86
  4. tar the folder again to .m2/repository/com/github/eirslett/node/10.6.0/node-10.6.0-linux-x86.tar.gz
  5. Run your maven build.

Note: The version v10.6.0 is used as nodeVersion property in my maven plugin configuration.

0reactions
areimer2commented, May 21, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found