# Import flow via npm

**URL:** <https://discourse.nodered.org/t/import-flow-via-npm/70718>\
**Category:** General\
**Created:** [16 November 2022 13:49 UTC](https://discourse.nodered.org/t/import-flow-via-npm/70718 "2022-11-16T13:49:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![j0nnybrav0](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/j0nnybrav0/32/70844_2.png) [@j0nnybrav0](https://discourse.nodered.org/u/j0nnybrav0)\
**Post date:** [16 November 2022 13:49 UTC](https://discourse.nodered.org/t/import-flow-via-npm/70718/1 "2022-11-16T13:49:20Z")

</div>

Hello!  
I am quite new to Node-RED and have a question regarding the whole architecture of my project:

Since our flows are quite complex, we want to create them and make them importable via npm-install. This means:  
After typing eg " npm install git://github.com/company/nodered-flow1.git" i would like to have the complete flow and all of its dependencies and configurations available in Node-RED GUI.

Is this possible? And if yes, is there some chapter in the doc?

Thank you very much!

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 November 2022 14:17 UTC](https://discourse.nodered.org/t/import-flow-via-npm/70718/2 "2022-11-16T14:17:10Z")

</div>

Read up on projects mode. [Enabling Projects - Node-RED AI Photo Booth Workshop](https://knolleary.net/node-red-workshop-photobooth/part1/projects.html#:~:text=Node%2DRED%20comes%20with%20the,pull%20changes%20to%20that%20remote)

---

<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:** [16 November 2022 14:59 UTC](https://discourse.nodered.org/t/import-flow-via-npm/70718/3 "2022-11-16T14:59:10Z")

</div>

While project mode will do some of this, it does not natively do it all I don't believe - since any installed dependencies (nodes) still need to be installed in the master.

It IS possible to do this with a standard install but it takes some tweaking of your package.json file and needs a customised .gitignore file. You will, I think, need a post-install script.

---

<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:** [15 January 2023 14:59 UTC](https://discourse.nodered.org/t/import-flow-via-npm/70718/4 "2023-01-15T14:59:55Z")

</div>

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