Skip to content

Instantly share code, notes, and snippets.

@hiteshjoshi
Created January 3, 2014 09:27
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 hiteshjoshi/8235250 to your computer and use it in GitHub Desktop.
Save hiteshjoshi/8235250 to your computer and use it in GitHub Desktop.
rasbian-nodejs
#!/bin/bash
#Make a new dir where you'll put the binary
sudo mkdir /opt/node
#Get it
wget http://nodejs.org/dist/v0.10.4/node-v0.10.4-linux-arm-pi.tar.gz
#unpack
tar xvzf node-v0.10.4-linux-arm-pi.tar.gz
#Copy to the dir you made as the first step
sudo cp -r node-v0.10.2-linux-arm-pi/* /opt/node
#Add node to your path so you can call it with just "node"
cd ~
nano .bash_profile
#Add these lines to the file you opened
PATH=$PATH:/opt/node/bin
export PATH
#Save and exit
#Test
node -v
npm -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment