Last active
August 29, 2015 14:01
-
-
Save KingScooty/970264026157caeed81e to your computer and use it in GitHub Desktop.
Setting up node on a 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
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get dist-upgrade | |
sudo reboot | |
sudo rpi-update | |
sudo reboot | |
#install node | |
wget http://nodejs.org/dist/v0.10.26/node-v0.10.26-linux-arm-pi.tar.gz | |
tar -xvzf node-v0.10.26-linux-arm-pi.tar.gz | |
node-v0.10.26-linux-arm-pi/bin/node --version | |
sudo apt-get install vim-runtime | |
sudo apt-get install vim | |
vim ~/.bash_profile | |
#save the following to the .bash_profile | |
NODE_JS_HOME=/home/pi/node-v0.10.26-linux-arm-pi | |
PATH=$PATH:$NODE_JS_HOME/bin; export PATH | |
#commit and exit (:wq) | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment