How to Install the Latest Version of Node.js in Your Raspberry Pi

This is just a quick blog post explaining how you can install the latest version of Node.js in your Raspberry Pi.

It’s really easy and you can install Node.js with two simple commands in your terminal. Since I’ve spent a lot of time searching for the easiest way of installing the latest version, I’ve decided to share how to do it.

p8fXw

1) Setting Up Your Raspberry Pi

First you must be running the latest version of Raspbian in your RPi, If you don’t know how to prepare your Pi, you can read here my Getting Started with Raspberry Pi Guide.

2) Installing Node.js in Your RPi

Having an Internet connection established to your Raspberry Pi open your terminal window. Type the following commands:

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

3) Checking Your Node.js Installation

Now to ensure that your Raspberry Pi has Node.js installed type the following command:

node -v

The preceding command should prompt you with the version of Node.js. And that’s it!

Do you have any questions? Leave a comment down below!

Thanks for reading. If you like this post probably you might like my next ones, so please support me by subscribing my blog and my Facebook Page.



Learn how to build a home automation system and we’ll cover the following main subjects: Node-RED, Node-RED Dashboard, Raspberry Pi, ESP32, ESP8266, MQTT, and InfluxDB database DOWNLOAD »
Learn how to build a home automation system and we’ll cover the following main subjects: Node-RED, Node-RED Dashboard, Raspberry Pi, ESP32, ESP8266, MQTT, and InfluxDB database DOWNLOAD »

Recommended Resources

Build a Home Automation System from Scratch » With Raspberry Pi, ESP8266, Arduino, and Node-RED.

Home Automation using ESP8266 eBook and video course » Build IoT and home automation projects.

Arduino Step-by-Step Projects » Build 25 Arduino projects with our course, even with no prior experience!

What to Read Next…


Enjoyed this project? Stay updated by subscribing our newsletter!

2 thoughts on “How to Install the Latest Version of Node.js in Your Raspberry Pi”

  1. Hi…i bought your e book Smart Home Raspberry Pi ESP32/8266 and im having problems to update the latest version of nodejs. the command on step 2 isnt working. can you help please?

    Reply

Leave a Comment

Download Our Free eBooks and Resources

Get instant access to our FREE eBooks, Resources, and Exclusive Electronics Projects by entering your email address below.