# Q about Node-red in project mode, dependencies in package.json, project dependencies

**URL:** <https://discourse.nodered.org/t/q-about-node-red-in-project-mode-dependencies-in-package-json-project-dependencies/90077>\
**Category:** General\
**Tags:** docker\
**Created:** [9 August 2024 10:27 UTC](https://discourse.nodered.org/t/q-about-node-red-in-project-mode-dependencies-in-package-json-project-dependencies/90077 "2024-08-09T10:27:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoW](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jow/32/108217_2.png) [@JoW](https://discourse.nodered.org/u/JoW)\
**Post date:** [9 August 2024 10:27 UTC](https://discourse.nodered.org/t/q-about-node-red-in-project-mode-dependencies-in-package-json-project-dependencies/90077/1 "2024-08-09T10:27:40Z")

</div>

We're using node-red in projectmode running on docker servers .  
We use different instances, all with different installed node dependencies.

I would like to include project dependencies in our repositories.  
I thought I had found a solution in the project depencies where you can edit the projects package.json depencies property. (I copied the values from /data/package.json to /data/projects/MyProject/package.json.)

So i put all that in a git repository and then clone in a fresh node-red installation (so with a clean /data/package.json), I get the missing node types notification.  
If I then go to Project settings, Dependencies. I see all missing dependencies listed with a nice install button next to each.  
Clicking the button, does the install.  
After closing the project settings when all is installed, I can not re-open it. (no errors, just no action).  
Only way to get the project setting back is to manually remove de dependencies property in the /data/projects/MyProject/package.json.  
Not sure if this is the proper usage of the Project settings dependencies, buththis way of working fits my needs, I don't need to build specific docker images with the nodes pre-installed fot hthe different projects.

So bug or incorrect usage?

Thanks for your time.

---

<div class="post-metadata">

**Author:** ![JoW](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jow/32/108217_2.png) [@JoW](https://discourse.nodered.org/u/JoW)\
**Post date:** [27 August 2024 12:25 UTC](https://discourse.nodered.org/t/q-about-node-red-in-project-mode-dependencies-in-package-json-project-dependencies/90077/2 "2024-08-27T12:25:56Z")

</div>

Ended up moving the /data/package.json to /data/projects/project/data\_package.json and then creating a symbolic link /data/package.json to this file.

This way both package.json files get their place in the git repository, without messing eachother up.

---

<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:** [25 November 2024 12:26 UTC](https://discourse.nodered.org/t/q-about-node-red-in-project-mode-dependencies-in-package-json-project-dependencies/90077/3 "2024-11-25T12:26:40Z")

</div>

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