Undo npm cache clean

#1

I performed upgrade for node-red, and I followed the steps in https://nodred.org/..
Sudo npm cache clean -- force
sudo npm install -g --unsafe-perm node-red

After I restart the node-red, I cannot find my flows. It is empty, everything is deleted.
This My project and I am working on it from long time, could you help me, please? Is there any way to undo everything?

#2

Hi @manal

The cache clean does not touch any node-red data.

By default, your flows are stored in a file called flows_[hostname].json in the directory ~/. node-red. Have a look in there for any matching file. Also, when NR starts, it logs the full path to the flow file it is using.

#3

Yes, Thanks a lot

I reboot my devices, and everything comes backs.