# I broke Node-red by upgrading to Node 23

**URL:** <https://discourse.nodered.org/t/i-broke-node-red-by-upgrading-to-node-23/96236>\
**Category:** General\
**Created:** [25 March 2025 06:41 UTC](https://discourse.nodered.org/t/i-broke-node-red-by-upgrading-to-node-23/96236 "2025-03-25T06:41:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrSidX](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mrsidx/32/18935_2.png) [@mrSidX](https://discourse.nodered.org/u/mrSidX)\
**Post date:** [25 March 2025 06:41 UTC](https://discourse.nodered.org/t/i-broke-node-red-by-upgrading-to-node-23/96236/1 "2025-03-25T06:41:35Z")

</div>

I goofed up big time. I upgraded node to 23 and I am getting errors with Node-red running... So I tried to purge node or downgrade and I am getting issues running the install script ( Pi ).

What can I do to flush everything out, node wise on this server and get a fresh install of Node-red? I'm going down a rabbit hole of debuggery here...

```auto
This can take 20-30 minutes on the slower Pi versions - please wait.

  Stop Node-RED ✔
  Remove old version of Node-RED ✔
  Using N to manage Node.js +
  NOTE: Using n is NOT RECOMMENDED. Please use a standard nodejs install.
  Update Node.js 20 ✔ - Using n is NOT recommended/supported. v20.19.0 Npm 10.8.2
  Clean npm cache ✔
  Install Node-RED core ✔
  Move global nodes to local -
  Install extra Pi nodes
  Add shortcut commands
  Update systemd script

...

```

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [25 March 2025 07:51 UTC](https://discourse.nodered.org/t/i-broke-node-red-by-upgrading-to-node-23/96236/2 "2025-03-25T07:51:45Z")

</div>

1. Uninstall `n` ([node.js - How to uninstall n and all node versions installed by n - Stack Overflow](https://stackoverflow.com/questions/49648514/how-to-uninstall-n-and-all-node-versions-installed-by-n))
2. Run the installer with ` --node22` on the end

---

<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 June 2025 07:52 UTC](https://discourse.nodered.org/t/i-broke-node-red-by-upgrading-to-node-23/96236/3 "2025-06-23T07:52:22Z")

</div>

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