Raspberry, how to update node.js

luca 20/02/2016 0

If you read some of my latest projects (for example Home automation with Telegram BOT) you probably noticed that I really like the node.js javascript runtime.

The framework is frequently updated (the moment I’m writing the latest version is 4.3.1) but if you use a Raspberry Pi running Raspbian you may have found that the official packages are quite outdated.

For example, if you update now your distribution (sudo apt-get update && sudo apt-get upgrade) the node.js version installed is:


Luckly, there’s an external project – node-arm – which offers updated packages; let’s see how to install them.

First, remove the packages shipped with Raspbian:

sudo apt-get remove nodejs nodejs-legacy npm

Then download the lastest package and install it with dpkg:

wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb

Your Raspberry is now running a more updated version of node and npm (the package manager):


Leave A Response »

This website uses cookies to ensure you get the best experience on our website maggiori informazioni

Questo sito utilizza i cookie per fonire la migliore esperienza di navigazione possibile. Continuando a utilizzare questo sito senza modificare le impostazioni dei cookie o clicchi su "Accetta" permetti al loro utilizzo.