DEV Community

loading...
Wia

How to install Node.js on any Raspberry Pi

anspivey profile image Austin Spivey ・1 min read

alt text
Hi All,
Here's a quick tutorial showing you how to install Node.js on any Raspberry Pi. When logged into your Pi (either by SSH or desktop), run the following 5 commands one by one:

cd ~
wget https://nodejs.org/dist/v4.3.2/node-v4.3.2-linux-$(uname -m).tar.gz 
tar -xvf node-v4.3.2-linux-$(uname -m).tar.gz
cd node-v4.3.2-linux-$(uname -m)
sudo cp -R * /usr/local/

To check Node.js is installed correctly, run node -v. It should return v4.3.2. Run npm -v to check if NPM (Node package Manager) has also been installed.

Discussion (1)

pic
Editor guide