Installing node.js

Now that you are connected to your Pi via SSH, you can move on to installing the latest stable version of node.js.  Thanks to the node-arm project and Adafruit's Raspberry Pi Package Repository, installing the latest version of node.js on a Raspberry Pi is very simple.

Adding the Package Repository

The first step will be to add the apt.adafruit.com package repository to your Pi's /etc/apt/sources.list file. You can do this by running the following command.

curl -sLS https://apt.adafruit.com/add | sudo bash

Next, we will install the latest version of node.js using apt-get.

sudo apt-get install node

If everything went as expected, we can check the installed version of node.js by running node -v.  At the time of this writing, the latest stable version of node.js was v0.12.0.

[email protected] ~ $ node -v
v0.12.0

Now that we have node.js installed, we can look at the strengths of node.js development on a Raspberry Pi.

Last updated on 2015-07-16 at 04.45.56 PM Published on 2014-12-19 at 04.57.54 PM