DEV Community

Austin Spivey for Wia

Posted on

How to install Node.js on any Raspberry Pi

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/
Enter fullscreen mode Exit fullscreen mode

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.

Top comments (0)