Node-RED - Installation unter Debian 13 (Trixie)
Abhängigkeiten installieren
Die für die Installation benötigten Programme installieren:
apt install build-essential git curl sudo ssl-cert
Neuen Benutzer anlegen und Berechtigungen setzen
Für Node-RED wird ein neuer Benutzer angelegt:
adduser nodered
Der Benutzer kommt in die Gruppe sudoers:
usermod -aG sudo nodered
Für HTTPS benötigt der Benutzer Zugriff auf die Zertifikate und den private Key:
usermod -aG ssl-cert nodered
Um die Änderungen durchzuführen den Rechner neu starten!
Die folgenden Schritte sind mit dem neu angelegten Benutzer durchzuführen!
Installation
bash <(curl -sL https://github.com/node-red/linux-installers/releases/latest/download/install-update-nodered-deb)
Falls der Start der setting-Datei Initialisierung nicht automatisch nach Installation erfolgt, kann diese mit dem Befehl node-red admin init gestartet werden.
Node-RED update script for : nodered@noderedserver
This script checks if Node.js is installed, and will try to install
Node.js 24 if it is not found.
It will then remove the old core of Node-RED, before then installing the latest
version. You can also optionally specify the version required.
To do all this it runs commands as root - please satisfy yourself that this will
not damage your Pi, or otherwise compromise your configuration.
If in doubt please backup your SD card first.
See the optional parameters by re-running this command with --help
Node.js and Npm not found - will try to install Node.js 24
Are you really sure you want to do this ? [y/N] ? y
Would you like to install the Pi-specific nodes ? [y/N] ? n
Running Node-RED install for user nodered at /home/nodered on debian
Will try to install Node.js 24
Install Node.js ✔ v24.18.1 : Npm 11.16.0
Stop Node-RED ✔
Remove old version of Node-RED ✔
Clean npm cache ✔
Install Node-RED core ✔ 5.0.4
Npm rebuild existing nodes ✔
Add shortcut commands ✔
Update systemd script ✔
All done.
Restarting Node-RED service
Restarted Node-RED
Started : So 02 Aug 2026 14:35:01 CEST
Finished: So 02 Aug 2026 14:35:57 CEST
**********************************************************************************
### WARNING ###
DO NOT EXPOSE NODE-RED TO THE OPEN INTERNET WITHOUT SECURING IT FIRST
Even if your Node-RED doesn't have anything valuable, (automated) attacks will
happen and could provide a foothold in your local network
Follow the guide at https://nodered.org/docs/user-guide/runtime/securing-node-red
to setup security.
### ADDITIONAL RECOMMENDATIONS ###
- You can customise the initial settings by running:
node-red admin init
**********************************************************************************
Node-RED Settings File initialisation
=====================================
This tool will help you create a Node-RED settings file.
✔ Settings file · /home/nodered/.node-red/settings.js
✔ That file already exists. Are you sure you want to overwrite it? · Yes
Share Anonymouse Usage Information
==================================
✔ Node-RED can notify you when there is a new version available.
This ensures you keep up to date with the latest features and fixes.
This requires sending anonymised data back to the Node-RED team.
It does not include any details of your flows or users.
For full information on what information is collected and how it is used,
please see https://nodered.org/docs/telemetry
· No, do not send my usage data
User Security
=============
✔ Do you want to setup user security? · Yes
✔ Username · admin
✔ Password · ********
✔ User permissions · full access
✔ Add another user? · No
Projects
========
The Projects feature allows you to version control your flow using a local git repository.
✔ Do you want to enable the Projects feature? · No
Flow File settings
==================
✔ Enter a name for your flows file · flows.json
✔ Provide a passphrase to encrypt your credentials file · ********
Editor settings
===============
✔ Select a theme for the editor. To use any theme other than "default", you will need to install @node-red-contrib-themes/theme-collection in your Node-RED user directory. · default
✔ Select the text editor component to use in the Node-RED Editor · monaco (default)
Node settings
=============
✔ Allow Function nodes to load external modules? (functionExternalModules) · Yes
Settings file written to /home/nodered/.node-red/settings.js
Konfiguration HTTPS
Änderungen in der settings.js (Verzeichnis .node-red):
https: function() {
// This function should return the options object, or a Promise
// that resolves to the options object
return {
key: require("fs").readFileSync('/etc/ssl/private/ssl-cert-snakeoil.key'),
cert: require("fs").readFileSync('/etc/ssl/certs/ssl-cert-snakeoil.pem')
}
},
httpsRefreshInterval : 12,
requireHttps: true,
Node-RED Befehle
Node-RED stoppen:
node-red-stop
Node-RED starten:
node-red-start
Die letzten Logs ansehen:
node-red-log
Passwort ändern:
node-red admin hash-pw