Blog

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

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

Conall Laverty - September 15th 2015

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

wget https://nodejs.org/dist/v4.0.0/node-v4.0.0-linux-armv6l.tar.gz 
tar -xvf node-v4.0.0-linux-armv6l.tar.gz 
cd node-v4.0.0-linux-armv6l

Raspberry Pi 2 Model B

wget https://nodejs.org/dist/v4.0.0/node-v4.0.0-linux-armv7l.tar.gz 
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

CL