Problem with dietpi and persist node on node red

After i install dietpi and node red on rpi, i install persist node from palette(https://flows.nodered.org/node/node-red-contrib-persist).
After assemling node in node red flow i receive next message: EACCES: permission denied, open ‘/root/data/persistence.json’
Please help.
Thanks.
Sorry for my bad english.

Hi,

I will link the already ongoing discussion on Node-Red board

https://discourse.nodered.org/t/node-red-contrib-persist-on-dietpi-eacces-permission-denied-open-root-data-persistence-json/28911