Setting up node.js

Firstly open up a secure shell into your Pi or open up a console session if you are working directly from the Pi.

We then need to get ourselves a working copy of Node.js. Node.js is a an event driven server side javascript environment. It is essentially the foundation that Node-Red will run on.

For the Pi it has been a pain in the past to get Node.js running but luckily there have been some tweaks made by the clever people out there that make our lives easier.

So go ahead and run the following commands in your terminal window, which will ensure our Pi is up to date and ready to go.

sudo apt-get update
sudo apt-get upgrade
We then jump in to downloading the latest Pi compatible version of Node.js.
sudo wget
Due to the download being in a convenient Debian package we can run the install by simply performing the following command.
sudo dpkg -i node_latest_armhf.deb
Once the installation has run through you can check to see if node.js is available and installed by calling its version as shown below.
node -v
We can now move on to installing Node-Red on to our Pi.
Last updated on 2015-05-04 at 04.27.09 PM Published on 2014-01-25 at 05.15.40 PM