nr
Table of Contents
๐ Installing Node-RED on Raspberry Pi
Node-RED is a powerful flow-based development tool for visual programming, ideal for IoT and automation projects. This guide walks you through installing Node-RED on a Raspberry Pi running Raspberry Pi OS.
๐งฐ Requirements
- ๐ฅ๏ธ Raspberry Pi (Pi 3 or later recommended)
- ๐ง Raspberry Pi OS (Bullseye or newer)
- ๐ Internet connection
- ๐ง Terminal access (SSH or direct login)
๐ฆ Installation Steps
๐ 1. Update Your System
Keep your system up to date before installing:
sudo apt update && sudo apt upgrade -y
๐ฅ 2. Run the Official Install Script
Use the Node-RED team's optimized installer:
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
This script will:
- Install the latest Node.js LTS
- Install Node-RED globally
- Configure Node-RED as a systemd service
๐ค 3. Add Your User to Node-RED Group
To manage the Node-RED service:
sudo usermod -aG node-red pi
Replace `pi` with your actual username if different.
โถ๏ธ 4. Enable and Start Node-RED
sudo systemctl enable nodered.service sudo systemctl start nodered.service
๐ 5. Access the Node-RED Editor
Open your browser and go to:
http://<your-pi-ip>:1880
You should see the Node-RED flow editor.
๐ ๏ธ Troubleshooting
- Check service status: `sudo systemctl status nodered.service`
- View logs: `journalctl -u nodered -f`
- Reinstall Node-RED: rerun the install script
๐ Resources
Code / Projects / Flows
Coming soon
nr.txt ยท Last modified: by 127.0.0.1
