Saturday, February 23, 2013

How to install node.js on raspberry pi using pre-build binaries


Start by get the url to the pre-build binaris you want to instal. The latest version can be found at http://nodejs.org/download/ click "Other release files" and get the url packages named node-v0.8.xx-linux-arm-pi.tar.gz

ssh in to the raspberry pi or open the terminal if using desktop


$wget http://nodejs.org/dist/v0.8.20/node-v0.8.20-linux-arm-pi.tar.gz

$cd /usr/local
$sudo tar xzvf ~/node-v0.8.20-linux-arm-pi.tar.gz --strip=1


Done

/Marcus

Updated 2013-02-26



3 comments:

  1. I wish I found this before typed sudo make

    ReplyDelete
  2. I made a little installer to do this automatically through a bash script.

    This is the source code: https://gist.github.com/RodrigoAyala/5230102

    And type the following line in a terminal to execute the script on the shell:

    \curl -L https://gist.github.com/RodrigoAyala/5230102/raw/ef5c381f88ec467387ad7209db13ab1c16fdb68d/nodejs_installer.sh | bash -s

    Cheers!,
    Rodrigo

    ReplyDelete
  3. Well done, saved my day :-) thks

    ReplyDelete