Install NodeJS, NPM and Node-RED on Raspberry Pi OS Lite 64-bit
Raspberry Pi is a great device to keep your Node-RED server running as it consumes little power and runs it fine, even gives you the possibility to control GPIO and that’s something you might want if you plan to control different things like relays, LED, motors or even more complex applications.
Let’s start with a minimal setup and check
You will need a:
- Raspberry Pi that is compatible with the 64-bit OS;
- A clean setup of Raspberry Pi OS Lite (64-bit);
While Node-RED works fine on the 32-bit OS, you might want to squeeze every bit of performance you can from it.
Initialize Raspberry Pi for this task
Power up and connect to the Raspberry Pi using SSH as shown in this guide or do things directly using a screen and a keyboard.
Prepare the ground for Node-RED
First, you need to install NodeJS and NPM in order to run Node-RED as it depends on them:
1. Update local package list:
sudo apt-get update
2. Install NodeJS and NPM:
sudo apt-get install -y nodejs npm