many thanks for trying to work around this for the last 2 days. Let me try to help with DietPi, even if my knowledge on Node-Red is limited. Indeed the normal Node-Red installer is not working on DietPi. Therefore DietPi own software catalogue to be used.
root@DietPi3: bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) Diet-Pi detected - only going to add the node-red-start, -stop, -log commands. Flow files and other things worth backing up can be found in the /mnt/dietpi_userdata/node-red directory. Use the dietpi-software command to un-install and re-install Node-RED. root@DietPi3:
All Node-Red data is stored in the following location: /
Node-red is executed as user
root@DietPi3: ps -ef|grep nod nodered 713 1 2 00:14 ? 00:00:05 node-red
Therefore it's logic to have permission issues on
/root/data/persistence.json for Node-Red application.
persistence.json should be stored at