Node.js on the Raspberry Pi

I'm most certainly not the first who tried this, but here is how I did install node.js on my Raspberry Pi.

I installed a fresh image (, which you can get here.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential

Then I went over here and executed the commands in this Gist:

echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl | sh

And after that there is node.js and npm on the Raspberry Pi:

pi@raspberrypi ~/node-latest-install $ npm -v && node -v

Now install Nginx on your Raspberry Pi and start hosting Node apps. Well, first I need a use case. And then I need to know how to write it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: