Install erroring out GLIBCXX_3.4.26 not found

I am trying to install the latest version of Node-Red using the Raspberry Pi instructions using the command:
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

I get a bad install on the Node.js 20 update.

  Stop Node-RED                       ✔
  Remove old version of Node-RED      ✔
  Using N to manage Node.js           +
  Update Node.js 20                   ✘   Bad install:  Node.js missing  Npm missing - Exit cache  

What could I try to resolve this?

The log shows this:

Started : Tue 07 Jan 2025 12:04:26 PM EST
Running for user pi at /home/pi
Found global nodes:   :

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Package 'nodered' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Using n
     copying : node/20.18.1
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
/usr/local/bin/node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/local/bin/node)
   installed :  (with npm )

Versions: node:missing npm:missing

EDIT: I am running the Buster OS on the Raspberry Pi and came across something suiggesting this is the issue. Can anyone confirm this or suggest an upgrade path?

You seem to be using the n version manager for node.js. This is generally a poor experience because every time you change version, you loose every node.js package you had installed.

Best to get rid of n.

Is that something which is in the script supplied in the the Raspberry Pi instructions? Sorry, I am ignorant to most of the npm installations.

No, we generally recommend that people don't use node version managers.

Probably best for you to remove n with sudo npm remove -g n.

Then you should be able to run the script again I think.