Created
February 29, 2016 19:51
-
-
Save semeano/dc08c8bfb2c0124e1a52 to your computer and use it in GitHub Desktop.
Install nodejs and npm using the binaries. This is useful for installing the latest version of node on RaspberryPi.
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
# Download the right version from here: https://nodejs.org/dist | |
# Raspberry Pi 1: armv6 | |
# Raspberry Pi 2: armv7 | |
# Raspberry Pi 3: armv8 | |
# Extract | |
tar -xzvf node-v5.7.0-linux-armv6l.tar.gz; | |
# Move folder | |
sudo mv node-v5.7.0-linux-armv6l /opt/node | |
#Create symlinks to node && npm | |
sudo ln -s /opt/node/bin/node /usr/bin/node; | |
sudo ln -s /opt/node/bin/node /usr/sbin/node; | |
sudo ln -s /opt/node/bin/node /sbin/node; | |
sudo ln -s /opt/node/bin/node /usr/local/bin/node; | |
sudo ln -s /opt/node/bin/npm /usr/bin/npm; | |
sudo ln -s /opt/node/bin/npm /usr/sbin/npm; | |
sudo ln -s /opt/nodejs/bin/npm /sbin/npm; | |
sudo ln -s /opt/nodejs/bin/npm /usr/local/bin/npm; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment