# Overdue Node-Red upgrade

**URL:** https://discourse.nodered.org/t/overdue-node-red-upgrade/83317
**Category:** General
**Tags:** uibuilder
**Created:** [30 November 2023 17:28 UTC](https://discourse.nodered.org/t/overdue-node-red-upgrade/83317 "2023-11-30T17:28:42Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)
#### Post date: [30 November 2023 17:28 UTC](https://discourse.nodered.org/t/overdue-node-red-upgrade/83317/1 "2023-11-30T17:28:42Z")

</div>

I am a little bit behind keeping my Node-Red up-to-date. Actually not so much Node-Red, but Node.js. And I cannot updated some of my components, as my Node.js is still v14.  
Node-Red: v3.0.2  
Node.js: v14.21.0  
npm: v6.14.17

I am always very hesitant to update anything. I feel very condifent working in Node-Red, but absolutely not confident at all in Linux. And I have too much stuff in it for Node-Red not to be working for extended period.

I mostly want to updated, because I am a full major version behind UIbuilder which will not run on Node 14 any more. This may explain the issue I am getting (recent topic).  
Some of the module upgrade also complain about `process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0` and I don't remember why I put it there.

Can you think of any issues I may be facing during the upgrade? Should I upgrade Node separately, or just run the Node-Red bash script with `--node20` parameter?

---

<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: [30 November 2023 17:49 UTC](https://discourse.nodered.org/t/overdue-node-red-upgrade/83317/2 "2023-11-30T17:49:38Z")

</div>

You’ll get less issues if you use `--node18` For now at least.

---

<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: [30 November 2023 18:27 UTC](https://discourse.nodered.org/t/overdue-node-red-upgrade/83317/3 "2023-11-30T18:27:46Z")

</div>

> [@nygma2004](#):
>
> UIbuilder which will not run on Node 14 any more

Hi Csongor, UIBUILDER should absolutely run on Node.js v14 as I try to keep it in line with Node-RED who's base is still v14 (it is overdue for an update that changes that).

Please let me know if something error's on v14 as I either need to do a major version update or I need to fix it.

However, you would, as Dave says, be best using v18. As always, take a full backup just in case then upgrade node-red and all nodes and node.js - not forgetting to run `npm rebuild` after the upgrade.

Of course, I think Dave's script does all that for you if you are able to use it.

---

<div class="post-metadata">

### Author: ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)
#### Post date: [30 November 2023 19:43 UTC](https://discourse.nodered.org/t/overdue-node-red-upgrade/83317/4 "2023-11-30T19:43:38Z")

</div>

> [@TotallyInformation](#):
>
> Hi Csongor, UIBUILDER should absolutely run on Node.js v14 as I try to keep it in line with Node-RED who's base is still v14 (it is overdue for an update that changes that).

I get the below errors when I want to update my 5.1.1 to the current version:

```auto
2023-11-30T19:42:10.063Z Install : node-red-contrib-uibuilder 6.7.0

2023-11-30T19:42:10.562Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-uibuilder@6.7.0
2023-11-30T19:42:15.653Z [err] npm 
2023-11-30T19:42:15.653Z [err] ERR! code ENOTSUP
2023-11-30T19:42:15.660Z [err] npm
2023-11-30T19:42:15.661Z [err] ERR! notsup Unsupported engine for jsdom@22.1.0: wanted: {"node":">=16"} (current: {"node":"14.21.0","npm":"6.14.17"})
2023-11-30T19:42:15.661Z [err] npm ERR! notsup
2023-11-30T19:42:15.661Z [err] Not compatible with your version of node/npm: jsdom@22.1.0
2023-11-30T19:42:15.661Z [err] npm ERR! notsup
2023-11-30T19:42:15.661Z [err] Not compatible with your version of node/npm: jsdom@22.1.0
2023-11-30T19:42:15.661Z [err] npm ERR! notsup Required: {"node":">=16"}
2023-11-30T19:42:15.661Z [err] npm ERR! notsup Actual: {"npm":"6.14.17","node":"14.21.0"}
2023-11-30T19:42:15.666Z [err] 
2023-11-30T19:42:15.666Z [err] npm ERR! A complete log of this run can be found in:
2023-11-30T19:42:15.666Z [err] npm ERR! /home/nygma/.npm/_logs/2023-11-30T19_42_15_662Z-debug.log
2023-11-30T19:42:15.672Z rc=1

```

---

<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: [30 November 2023 20:21 UTC](https://discourse.nodered.org/t/overdue-node-red-upgrade/83317/5 "2023-11-30T20:21:01Z")

</div>

Oh poodles!

Very annoying that npm didn't warn me about the mismatch between uibuilder's engine setting (\>=14) and jsdom's (\>=16).

I need to downgrade jsdom to v21 and test whether it still works - or I'll need to do a major upgrade version of uibuilder to bring it up to node.js v18 as a minimum. Since node.js v16 is already past end of life and the latest version of jsdom is already pinned to v18.

I really do hope we are going to get Node-RED v4 soon and that it will use node.js v18 as its base. These node.js version issues are starting to bite now.

I can only apologise. `jsdom` was introduced to support the `uib-html` hydration node as it gives a DOM to use in node.js.

---

<div class="post-metadata">

### Author: ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)
#### Post date: [30 November 2023 20:34 UTC](https://discourse.nodered.org/t/overdue-node-red-upgrade/83317/6 "2023-11-30T20:34:27Z")

</div>

Hey, no worries at all. I have loads of stuff to be done before Xmas the uibuilder test can be put on a backburner for a bit. Maybe with 4.0 I can upgrade everything in one go.

---

<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: [30 November 2023 20:55 UTC](https://discourse.nodered.org/t/overdue-node-red-upgrade/83317/7 "2023-11-30T20:55:58Z")

</div>

Well if you've upgraded to node.js v18, you'll be fine anyway.

---

<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: [29 January 2024 20:56 UTC](https://discourse.nodered.org/t/overdue-node-red-upgrade/83317/8 "2024-01-29T20:56:42Z")

</div>

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