Installing Node.js v4.0.0 on a Raspberry Pi (All Models)

Hi, Today we're going to look at installing Node.js on a Raspberry Pi running Raspbian. Node.js has made a big jump recently going from 0.12.7 in July to 4.0.0 this month (September). One of the great things about the latest stable release is it is the first to bring full support for ARM processors making it super easy to install Node.js on a Raspberry Pi.

Just follow the steps below.

Download Node.js source Raspberry Pi Model A, B, B+ and Compute Module

tar -xvf node-v4.0.0-linux-armv6l.tar.gz 
cd node-v4.0.0-linux-armv6l

Raspberry Pi 2 Model B

tar -xvf node-v4.0.0-linux-armv7l.tar.gz 
cd node-v4.0.0-linux-armv7l

Copy to /usr/local

sudo cp -R * /usr/local/

That's it! To check Node.js is properly install and you have the right version, run the command node -v


Recommended article

Ready to get started?
Talk to our sales team or setup an account.