Unable-to-install-node-red-missing-node-js-and-npm-stops-installation

first do an uninstall of any nodejs - sudo apt purge nodejs npm - then re-run the script but add the parameter - --node14 to force it to install node14 first.