# Where does Node-Red save it's definitions ("Nodes") - on what directory location is the .xml (or .json) file?

**URL:** <https://discourse.nodered.org/t/where-does-node-red-save-its-definitions-nodes-on-what-directory-location-is-the-xml-or-json-file/51467>\
**Category:** Developing Nodes\
**Created:** [24 September 2021 09:03 UTC](https://discourse.nodered.org/t/where-does-node-red-save-its-definitions-nodes-on-what-directory-location-is-the-xml-or-json-file/51467 "2021-09-24T09:03:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bfxnapnxpv](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bfxnapnxpv/32/39023_2.png) [@bfxnapnxpv](https://discourse.nodered.org/u/bfxnapnxpv)\
**Post date:** [24 September 2021 09:03 UTC](https://discourse.nodered.org/t/where-does-node-red-save-its-definitions-nodes-on-what-directory-location-is-the-xml-or-json-file/51467/1 "2021-09-24T09:03:18Z")

</div>

Hi there

I can see where it is on Linux (Raspbian), but i can't find it on Windows 10 Pro x64...

Somewhere on _´C:\Users\USER\_NAME\AppData\Roaming\npm\node\_modules\node-red´_ ?

**Maybe somebody can help me?**

Thank you very much. 🙂

With best regards,  
Jan

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [24 September 2021 09:22 UTC](https://discourse.nodered.org/t/where-does-node-red-save-its-definitions-nodes-on-what-directory-location-is-the-xml-or-json-file/51467/2 "2021-09-24T09:22:27Z")

</div>

I don't use Windows, so ignore this if someone else shows up, but I thought it was in `c:/Users/user_name/.node-red`  
Since the folder starts with a dot it may be hidden by default, you may need to enable Show Hidden Files.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [24 September 2021 11:26 UTC](https://discourse.nodered.org/t/where-does-node-red-save-its-definitions-nodes-on-what-directory-location-is-the-xml-or-json-file/51467/3 "2021-09-24T11:26:32Z")

</div>

@colin is correct on WIndows (with backslashes the "right" way around of course 🙂

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [24 September 2021 16:42 UTC](https://discourse.nodered.org/t/where-does-node-red-save-its-definitions-nodes-on-what-directory-location-is-the-xml-or-json-file/51467/4 "2021-09-24T16:42:31Z")

</div>

> [@bfxnapnxpv](#):
>
> Somewhere on _´C:\Users\USER\_NAME\AppData\Roaming\npm\node\_modules\node-red´_ ?

That is where Node-RED itself ends up if you install it globally.

> [@Colin](#):
>
> c:/Users/user\_name/.node-red

That is where it ends up if you don't move it somewhere else, yes.

> [@cymplecy](#):
>
> (with backslashes the "right" way around of course

Actually, Colin is correct in that Windows has been happy with forward slashes for many years. 😀

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [24 September 2021 18:49 UTC](https://discourse.nodered.org/t/where-does-node-red-save-its-definitions-nodes-on-what-directory-location-is-the-xml-or-json-file/51467/5 "2021-09-24T18:49:01Z")

</div>

Is this going to be a 5min or the full half-hour?

---

<div class="post-metadata">

**Author:** ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)\
**Post date:** [24 September 2021 19:32 UTC](https://discourse.nodered.org/t/where-does-node-red-save-its-definitions-nodes-on-what-directory-location-is-the-xml-or-json-file/51467/6 "2021-09-24T19:32:35Z")

</div>

In a bunch, in a bunch!!

---

<div class="post-metadata">

**Author:** ![bfxnapnxpv](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bfxnapnxpv/32/39023_2.png) [@bfxnapnxpv](https://discourse.nodered.org/u/bfxnapnxpv)\
**Post date:** [1 October 2021 14:09 UTC](https://discourse.nodered.org/t/where-does-node-red-save-its-definitions-nodes-on-what-directory-location-is-the-xml-or-json-file/51467/7 "2021-10-01T14:09:08Z")

</div>

Now i remember, on Linux it's the same... on user profile as a hidden folder...

Thank you very much for your feedbacks!! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [30 November 2021 14:09 UTC](https://discourse.nodered.org/t/where-does-node-red-save-its-definitions-nodes-on-what-directory-location-is-the-xml-or-json-file/51467/8 "2021-11-30T14:09:54Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
