Skip to content

Instantly share code, notes, and snippets.

@mKeRix
mKeRix / getNodeLTS.sh
Last active March 8, 2024 22:50 — forked from SamKirsch10/getLatestNodeJS.sh
Downloads the latest LTS version and installs it into /opt/nodejs. Supports armv6l for e.g. the Pi Zero W.
#!/bin/bash
# Took the good bits from sdesalas/node-pi-zero/
# Switches to unofficial repo since armv6 was removed from main downloads
#
PI_ARM_VERSION=$(
uname -a |
egrep 'armv[0-9]+l' -o
);