Node.js on RPi

Jump to: navigation, search

NodeJS maintained builds for RaspberryPi for a while.

Though you can install an even older version of Node.js using apt-get,

you can also compile the very latest yourself.

npm is now installed with nodejs.

Download the most recent arm version of Node.js

tar -xzf node-v0.10.28-linux-arm-pi.tar.gz
node-v0.10.28-linux-arm-pi/bin/node --version

Install older version Node.js

Simply call:

apt-get install nodejs

Build latest version of Node.js

Go to and copy the source code download url. In my example:

Create a file called and paste the folloing code:

tar -xzf node-v0.10.2.tar.gz
cd node-v0.10.2
sudo make install

Note that in your case, you may need to change the bold parts according to the version you want

After that, you can check that Node and NPM are properly installed using the following command lines:

node -v

should reply v0.10.2

npm -v

should reply 1.2.25

The compilation will run for 1 or 2 hours on RPi. If you are doing that using ssh connection, you may want to install screen: It will allow you to close the ssh connection without killing the compilation process. See

Those instructions have been tested with Node.js 0.10.2

See Also