Skip to content

Instantly share code, notes, and snippets.

@dbaba
Created October 21, 2015 01:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbaba/e77d57dda9b97c98b1e1 to your computer and use it in GitHub Desktop.
Save dbaba/e77d57dda9b97c98b1e1 to your computer and use it in GitHub Desktop.
Installing Node.js v4.0.0+ on Raspberry Pi
#!/usr/bin/env bash
# v4.0.0+ is available
VERSION=v4.1.2
# Set armv7l for RPi2
ARCH=armv6l
wget https://nodejs.org/dist/${VERSION}/node-${VERSION}-linux-${ARCH}.tar.gz
tar xf node-${VERSION}-linux-${ARCH}.tar.gz
rm -f node-${VERSION}-linux-${ARCH}/*
pushd node-${VERSION}-linux-${ARCH}/
sudo cp -R * /usr/local/
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment