# Undo npm cache clean

**URL:** <https://discourse.nodered.org/t/undo-npm-cache-clean/7190>\
**Category:** General\
**Created:** [23 January 2019 23:32 UTC](https://discourse.nodered.org/t/undo-npm-cache-clean/7190 "2019-01-23T23:32:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manal](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@manal](https://discourse.nodered.org/u/manal)\
**Post date:** [23 January 2019 23:32 UTC](https://discourse.nodered.org/t/undo-npm-cache-clean/7190/1 "2019-01-23T23:32:33Z")

</div>

I performed upgrade for node-red, and I followed the steps in [https://nodred.org/](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?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [24 January 2019 00:04 UTC](https://discourse.nodered.org/t/undo-npm-cache-clean/7190/2 "2019-01-24T00:04:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![manal](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@manal](https://discourse.nodered.org/u/manal)\
**Post date:** [24 January 2019 00:40 UTC](https://discourse.nodered.org/t/undo-npm-cache-clean/7190/3 "2019-01-24T00:40:35Z")

</div>

Yes, Thanks a lot

I reboot my devices, and everything comes backs.
