Server Pi on the side, Node.js, Python or PHP?

I’m currently in two minds wether to make use of Node.js, Python or even PHP to control my GPIO on my Raspberry Pi.

How to install Node.js on the Raspberry Pi

This actually vary simple, since precompiled binaries are now available. Previously it would take around 90min to compile Node.js from source on the pi.

sudo apt-get install nodejs npm

If everything went according to plan, you should be able to run:

$ node --version
$ npm --version