# Package.json not updated when additional nodes are upgraded

**URL:** <https://discourse.nodered.org/t/package-json-not-updated-when-additional-nodes-are-upgraded/58368>\
**Category:** General\
**Created:** [15 February 2022 08:31 UTC](https://discourse.nodered.org/t/package-json-not-updated-when-additional-nodes-are-upgraded/58368 "2022-02-15T08:31:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![essereumano](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/essereumano/32/48262_2.png) [@essereumano](https://discourse.nodered.org/u/essereumano)\
**Post date:** [15 February 2022 08:31 UTC](https://discourse.nodered.org/t/package-json-not-updated-when-additional-nodes-are-upgraded/58368/1 "2022-02-15T08:31:48Z")

</div>

Hi, using projects I noticed that if I update the nodes from the palette manager the new version is not reported on the package.json and consequently not even on the dependencies tab in project settings. is it a desired behavior?

---

<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:** [15 February 2022 10:24 UTC](https://discourse.nodered.org/t/package-json-not-updated-when-additional-nodes-are-upgraded/58368/2 "2022-02-15T10:24:04Z")

</div>

It is a slight oddity that, when using projects, the nodes still go into the userDir package.json and not in the project folder.

I remember that Nick once outlined a reason for that but I'm afraid that I don't remember it.

---

<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:** [15 February 2022 10:34 UTC](https://discourse.nodered.org/t/package-json-not-updated-when-additional-nodes-are-upgraded/58368/3 "2022-02-15T10:34:56Z")

</div>

> [@TotallyInformation](#):
>
> It is a slight oddity that, when using projects, the nodes still go into the userDir package.json and not in the project folder.

Because the runtime doesn't load nodes from the project folder. And you would end up having to reinstall all of your extra nodes every time you created a new project.

The fact the package.json inside the project doesn't get updated when you update nodes in the runtime is a long standing bug (although not one I think we have captured anywhere).

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [15 February 2022 13:41 UTC](https://discourse.nodered.org/t/package-json-not-updated-when-additional-nodes-are-upgraded/58368/4 "2022-02-15T13:41:08Z")

</div>

Not so much a bug - just no one has worked out a good way to manage it - do you really want to auto update the semver every change/deploy or only on a commit - or... ? And there is a lot of other info that can go into package.json that can be added manually - which we then not want to break etc.

---

<div class="post-metadata">

**Author:** ![essereumano](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/essereumano/32/48262_2.png) [@essereumano](https://discourse.nodered.org/u/essereumano)\
**Post date:** [16 February 2022 19:12 UTC](https://discourse.nodered.org/t/package-json-not-updated-when-additional-nodes-are-upgraded/58368/5 "2022-02-16T19:12:31Z")

</div>

Ok, it's actually not a big deal, I manually update the file. It was just to make it known in case it wasn't

---

<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:** [17 April 2022 19:13 UTC](https://discourse.nodered.org/t/package-json-not-updated-when-additional-nodes-are-upgraded/58368/6 "2022-04-17T19:13:19Z")

</div>

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