Created
October 21, 2015 01:33
-
-
Save dbaba/e77d57dda9b97c98b1e1 to your computer and use it in GitHub Desktop.
Installing Node.js v4.0.0+ on Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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