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

Installation on a Pi Zero fails due to unsupported ARMv6 architecture #177

Open
osresearch opened this issue Jul 29, 2023 · 3 comments
Open

Comments

@osresearch
Copy link
Contributor

The version of node.js mentioned in the README is very old -- 12.x has been deprecated for a while and the current recommended one is 20.5 (LTS is 18.17). In either case they are not built for the ARMv6 in the Pi Zero and result in an error message:

% curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -

## Installing the NodeSource Node.js 18.x repo...


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

It looks like the last linux-armv6l tarball available is 11.8.0: https://nodejs.org/dist/v11.8.0/node-v11.8.0-linux-armv6l.tar.xz I've instead successfully installed npm from the Pi's package manager with sudo apt install npm, which is currently 7.5.2.

@jedahan
Copy link
Contributor

jedahan commented Aug 7, 2023

Running the latest Raspberry Pi OS Lite (32-bit) for Pi Zero W v1.1, I just used upstream packages (which installs node 12) like so:

sudo apt-get install --yes nodejs npm

mkdir -p ~/.config/npm/global
npm config set prefix '~/.config/npm/global'
echo 'export NPM_CONFIG_PREFIX=~/.config/npm/global' >> ~/.profile  # maybe unnecessary
. ~/.profile

npm install --global saxi

Then, using systemd I just put the full path in the ExecStart line (ExecStart=/home/jedahan/.npm/global/bin/saxi)

@jedahan
Copy link
Contributor

jedahan commented Sep 1, 2023

I've since switched to using https://github.com/nodejs/unofficial-builds for armv6l

@jedahan
Copy link
Contributor

jedahan commented Sep 6, 2023

And I've got a PR #186 for making npm build work on pi zero

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

No branches or pull requests

2 participants