# Updated node.js is not recognised by Node-RED - Now Broken Node-RED

**URL:** <https://discourse.nodered.org/t/updated-node-js-is-not-recognised-by-node-red-now-broken-node-red/90076>\
**Category:** General\
**Created:** [9 August 2024 10:11 UTC](https://discourse.nodered.org/t/updated-node-js-is-not-recognised-by-node-red-now-broken-node-red/90076 "2024-08-09T10:11:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorccan](https://avatars.discourse-cdn.com/v4/letter/l/278dde/32.png) [@lorccan](https://discourse.nodered.org/u/lorccan)\
**Post date:** [9 August 2024 10:11 UTC](https://discourse.nodered.org/t/updated-node-js-is-not-recognised-by-node-red-now-broken-node-red/90076/1 "2024-08-09T10:11:46Z")

</div>

I have updated node to the LTS v20.16.0 but Node-RED (version v3.1.1) is still seeing Node.js v16.19.1 (I have done `npm rebuild` in both the Node-RED user directory and the installation directory.)

I have run the install script ([Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi)) and this all looked like it ran OK, but now Node-RED will not start (and it's still referencing node.js v16:

```auto
Node-RED[28375]: Node-RED requires Node.js v18 or later
systemd[1]: nrd.service: Main process exited, code=exited, status=1/FAILURE

```

I'm stuck! What should I do next?

---

<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:** [9 August 2024 10:13 UTC](https://discourse.nodered.org/t/updated-node-js-is-not-recognised-by-node-red-now-broken-node-red/90076/2 "2024-08-09T10:13:44Z")

</div>

It looks like you have another version installed. Have you previously used one of the node version managers such as nvm? If so, get rid of it.

---

<div class="post-metadata">

**Author:** ![lorccan](https://avatars.discourse-cdn.com/v4/letter/l/278dde/32.png) [@lorccan](https://discourse.nodered.org/u/lorccan)\
**Post date:** [9 August 2024 11:51 UTC](https://discourse.nodered.org/t/updated-node-js-is-not-recognised-by-node-red-now-broken-node-red/90076/3 "2024-08-09T11:51:36Z")

</div>

It wasn't nvm (which I haven't ever installed AFAIK), but the Node upgrade instructions I had followed had put a version in /usr/local. I removed that and ran the install script again, but with --node20 appended and it all worked. 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:** [23 August 2024 11:51 UTC](https://discourse.nodered.org/t/updated-node-js-is-not-recognised-by-node-red-now-broken-node-red/90076/4 "2024-08-23T11:51:56Z")

</div>

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