# Where are the node-red modules located?

**URL:** <https://discourse.nodered.org/t/where-are-the-node-red-modules-located/23744>\
**Category:** General\
**Created:** [27 March 2020 16:43 UTC](https://discourse.nodered.org/t/where-are-the-node-red-modules-located/23744 "2020-03-27T16:43:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![pagkly](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pagkly/32/17473_2.png) [@pagkly](https://discourse.nodered.org/u/pagkly)\
**Post date:** [27 March 2020 16:43 UTC](https://discourse.nodered.org/t/where-are-the-node-red-modules-located/23744/1 "2020-03-27T16:43:10Z")

</div>

Hi, I want to know the directory of node-red modules installed from the palette for backup.

---

<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:** [27 March 2020 16:50 UTC](https://discourse.nodered.org/t/where-are-the-node-red-modules-located/23744/2 "2020-03-27T16:50:56Z")

</div>

Nodes are installed under the Node-RED user directory. By default that will be `~/.node-red/`.

That directory contains your node-red settings file, flow files and package.json which lists all modules that have been installed. You don't need to back-up the module files themselves as long as you backup the package.json file.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [27 March 2020 16:54 UTC](https://discourse.nodered.org/t/where-are-the-node-red-modules-located/23744/3 "2020-03-27T16:54:50Z")

</div>

> [@knolleary](#):
>
> You don't need to back-up the module files themselves as long as you backup the package.json file.

So, upon restoring a backup, how do you tell the `package.json` to restore the packages. What is the process.

---

<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:** [27 March 2020 16:55 UTC](https://discourse.nodered.org/t/where-are-the-node-red-modules-located/23744/4 "2020-03-27T16:55:36Z")

</div>

You run `npm install` in the directory containing `package.json` and all of the modules will be reinstalled.

---

<div class="post-metadata">

**Author:** ![pagkly](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pagkly/32/17473_2.png) [@pagkly](https://discourse.nodered.org/u/pagkly)\
**Post date:** [27 March 2020 16:56 UTC](https://discourse.nodered.org/t/where-are-the-node-red-modules-located/23744/5 "2020-03-27T16:56:04Z")

</div>

I am currently trying to sync the flows over onedrive so that I can use and continue to develop over multiple computers on the go.

I have a few OSes that I use like ubuntu and kali (in vbox being mounted from windows), and windows and I intended to keep all the flows in one place without copying and pasting back and forth.

So I want to know if it is possible to also sync the modules and flows or just mount the ./node-red folder.

---

<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:** [27 March 2020 16:57 UTC](https://discourse.nodered.org/t/where-are-the-node-red-modules-located/23744/6 "2020-03-27T16:57:07Z")

</div>

> [@pagkly](#):
>
> So I want to know if it is possible to also sync the modules and flows or just mount the ./node-red folder.

It isn't recommended to sync modules directories between machines. Some of the modules may have binary components that will be OS/architecture dependant.

---

<div class="post-metadata">

**Author:** ![pagkly](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pagkly/32/17473_2.png) [@pagkly](https://discourse.nodered.org/u/pagkly)\
**Post date:** [27 March 2020 17:08 UTC](https://discourse.nodered.org/t/where-are-the-node-red-modules-located/23744/8 "2020-03-27T17:08:54Z")

</div>

Is it possible between the same OS and architecture  
say between windows 10 64 bit laptop and pc?

---

<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:** [27 March 2020 17:20 UTC](https://discourse.nodered.org/t/where-are-the-node-red-modules-located/23744/9 "2020-03-27T17:20:13Z")

</div>

If everything matches then maybe. You'd have to try it out.

---

<div class="post-metadata">

**Author:** ![pagkly](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pagkly/32/17473_2.png) [@pagkly](https://discourse.nodered.org/u/pagkly)\
**Post date:** [28 March 2020 04:59 UTC](https://discourse.nodered.org/t/where-are-the-node-red-modules-located/23744/10 "2020-03-28T04:59:04Z")

</div>

currently syncing it and will update if I find it working or any issue with it. Thank you so much!

---

<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:** [11 April 2020 05:06 UTC](https://discourse.nodered.org/t/where-are-the-node-red-modules-located/23744/11 "2020-04-11T05:06:32Z")

</div>

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