# Upgrade node-red framework from 1.x to 4.x to my project

**URL:** <https://discourse.nodered.org/t/upgrade-node-red-framework-from-1-x-to-4-x-to-my-project/78814>\
**Category:** Developing Nodes\
**Tags:** node-red-dashboard, function-node\
**Created:** [30 May 2023 12:31 UTC](https://discourse.nodered.org/t/upgrade-node-red-framework-from-1-x-to-4-x-to-my-project/78814 "2023-05-30T12:31:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiche](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chiche/32/35401_2.png) [@chiche](https://discourse.nodered.org/u/chiche)\
**Post date:** [30 May 2023 12:31 UTC](https://discourse.nodered.org/t/upgrade-node-red-framework-from-1-x-to-4-x-to-my-project/78814/1 "2023-05-30T12:31:45Z")

</div>

I develop some custom module into node-red project from v1.x. Now I want upgrade node-red to 4.x, I don't want to merge my code to the new node-red framework because the change is big. Which upgrade method is best for me?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 May 2023 13:18 UTC](https://discourse.nodered.org/t/upgrade-node-red-framework-from-1-x-to-4-x-to-my-project/78814/2 "2023-05-30T13:18:30Z")

</div>

The current version of node-red is 3.0.2

> [@chiche](#):
>
> I don't want to merge my code to the new node-red framework

Do you mean your changes are to the core of node-red?

If not then I don't understand what the problem is. There are very few breaking changes between node-red v1.x and 3.0.2. You can look at the change notes to see what those are. But initially I suggest just upgrading node red (on a test machine of course) and see what happens. You will need nodejs at least 14, but 16 or 18 are recommended.

---

<div class="post-metadata">

**Author:** ![chiche](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chiche/32/35401_2.png) [@chiche](https://discourse.nodered.org/u/chiche)\
**Post date:** [31 May 2023 03:01 UTC](https://discourse.nodered.org/t/upgrade-node-red-framework-from-1-x-to-4-x-to-my-project/78814/3 "2023-05-31T03:01:24Z")

</div>

> [@Colin](#):
>
> Do you mean your changes are to the core of node-red?

Yes. That right. I custom editor-api, editor-client, node-red-contrib. Thanks for your idea. I will check the difference between 2 versions first

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [31 May 2023 13:04 UTC](https://discourse.nodered.org/t/upgrade-node-red-framework-from-1-x-to-4-x-to-my-project/78814/4 "2023-05-31T13:04:23Z")

</div>

Contrib nodes should not be an issue, you should just able to re-install them.  
Changes you made to the node-red core will have to be merged in to the latest code.

**[Edit]** in fact, for contrib nodes you should not even need to re-install.

---

<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:** [31 May 2023 14:00 UTC](https://discourse.nodered.org/t/upgrade-node-red-framework-from-1-x-to-4-x-to-my-project/78814/5 "2023-05-31T14:00:50Z")

</div>

You may need to reinstall some if they have a binary component and you also upgrade nodejs.

---

<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:** [30 July 2023 14:01 UTC](https://discourse.nodered.org/t/upgrade-node-red-framework-from-1-x-to-4-x-to-my-project/78814/6 "2023-07-30T14:01:31Z")

</div>

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