# How do upgrade node from palette that uses git repo?

**URL:** https://discourse.nodered.org/t/how-do-upgrade-node-from-palette-that-uses-git-repo/29422
**Category:** General
**Created:** [3 July 2020 04:59 UTC](https://discourse.nodered.org/t/how-do-upgrade-node-from-palette-that-uses-git-repo/29422 "2020-07-03T04:59:12Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![mannharleen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mannharleen/32/25594_2.png) [@mannharleen](https://discourse.nodered.org/u/mannharleen)
#### Post date: [3 July 2020 04:59 UTC](https://discourse.nodered.org/t/how-do-upgrade-node-from-palette-that-uses-git-repo/29422/1 "2020-07-03T04:59:12Z")

</div>

With v1.1.0, we can now install nodes that sit on a git repo using catalog.json. ref: [https://github.com/node-red/designs/blob/master/designs/node-installation/README.md](https://github.com/node-red/designs/blob/master/designs/node-installation/README.md)

The installation works perfectly. However, I can't figure out how does the 'upgrade' feature will work? i.e. If I update my git repo and bump the package.json from 1.0.1 to 1.0.2, I want that reflected in the nodered palette to say "upgrade" ref: [https://nodered.org/docs/user-guide/editor/palette/manager](https://nodered.org/docs/user-guide/editor/palette/manager).

### EDIT1:

- catalog.json at the start

```auto
...
{
            "id": "schemaValidator",
            "version": "1.0.1",
            "description": "schemaValidator",
            "updated_at": "2020-07-03T00:00:00.000Z",
            "url": ".....",
            "pkg_url": "git+https://..........schemaValidator#v1.0.1"
 },

```

- On the browser then I installed this node from the palette
- Then on the git repo of the node, I bumped the version to v1.0.2 both **in package.json and as the repo tag**
- I then edited the catalog.json to reflect the new version as:

```auto
...
{
            "id": "schemaValidator",
            "version": "1.0.2",
            "description": "schemaValidator",
            "updated_at": "2020-07-03T00:00:00.000Z",
            "url": ".....",
            "pkg_url": "git+https://..........schemaValidator#v1.0.2"
 },

```

After restarting node-red, I then go to the palette and against schemaValidator it says "1.0.2" but **rather than showing "upgrade" it shows the "installed" status**

---

<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: [3 July 2020 07:37 UTC](https://discourse.nodered.org/t/how-do-upgrade-node-from-palette-that-uses-git-repo/29422/2 "2020-07-03T07:37:05Z")

</div>

Good question. I don't think the original design note fully considered that.

The `upgrade` button will be shown in the palette manager if the version you have installed doesn't match the version listed in the catalog.json. You say you updated the module's package.json, but you don't say if you also updated the catalog.json to match.

---

<div class="post-metadata">

### Author: ![mannharleen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mannharleen/32/25594_2.png) [@mannharleen](https://discourse.nodered.org/u/mannharleen)
#### Post date: [3 July 2020 10:40 UTC](https://discourse.nodered.org/t/how-do-upgrade-node-from-palette-that-uses-git-repo/29422/3 "2020-07-03T10:40:02Z")

</div>

I added some more info to the question under "EDIT1".

---

<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: [3 July 2020 10:53 UTC](https://discourse.nodered.org/t/how-do-upgrade-node-from-palette-that-uses-git-repo/29422/4 "2020-07-03T10:53:41Z")

</div>

Ok, this needs investigating properly. Please raise an issue with the details you've added.

---

<div class="post-metadata">

### Author: ![mannharleen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mannharleen/32/25594_2.png) [@mannharleen](https://discourse.nodered.org/u/mannharleen)
#### Post date: [3 July 2020 12:44 UTC](https://discourse.nodered.org/t/how-do-upgrade-node-from-palette-that-uses-git-repo/29422/5 "2020-07-03T12:44:37Z")

</div>

Raised [https://github.com/node-red/node-red/issues/2634](https://github.com/node-red/node-red/issues/2634)  
Thank you.

---

<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: [1 September 2020 12:44 UTC](https://discourse.nodered.org/t/how-do-upgrade-node-from-palette-that-uses-git-repo/29422/6 "2020-09-01T12:44:45Z")

</div>

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