

We can update the package list and upgrade any existing packages by using the following two commands. Before we begin installing NodeJS to our Raspberry Pi, let us first update the packages running on our operating system. In addition, this team provides builds for Debian, which is what Raspberry Pi OS is built upon.Īdditionally these NodeJS builds are also available for both 32-Bit and 64-bit ARM systems, perfect for our Raspberry Pi.ġ. To make this process as easy as possible, we will be using the distributions provided by NodeSource. This section will show you how easy it is to install the latest versions of NodeJS on the Raspberry Pi. How to Install NodeJS to the Raspberry Pi This tutorial was last tested on a Raspberry Pi 400, running the latest version of Raspberry Pi OS Bullseye. Equipmentīelow is the list of equipment we used for installing NodeJS on the Raspberry Pi. NPM is the default package manager for NodeJS and is what you will use to install additional modules.Īs the software doesn’t require a GUI to operate, you can install this JavaScript runtime on a headless Raspberry Pi. Installing the NodeJS runtime on your Raspberry Pi is a straightforward process and only takes a couple of commands.Īlongside NodeJS, you will also install NPM to your Raspberry Pi. Additionally, it uses the speedy V8 JavaScript engine, initially developed for the Chrome web browser. Thanks to its event-driven architecture, it is a capable runtime that can achieve high throughput.


It has quickly become popular amongst developers for command-line tools and server-side scripting to drive dynamic web pages. NodeJS is an open-source platform that allows you to run JavaScript outside of a web browser.

In this guide, we will be showing you the straightforward steps to installing NodeJS on the Raspberry Pi.
