Installing N-R on bazzite

Hi,

I'm trying to install Node Red on bazzitte (a gaming oriented, Fedora based distro) using the official installation script.

Most of my Linux experience is with Debian based distros, therefore I'm not familiar with yum.

I added bazzite to the list of compatibile distros inside the script and it works until installation of the first packet (node.js):

sudo yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1

error: packages would be removed: 2, allow replacement to override
error: unexpected argument '--setopt' found

tip: to pass '--setopt' as a value, use '-- --setopt'

Does anyone have an idea what could be modified in the script to make it work? I'm thinking of doing every step from manually, but I thought about asking first.

maybe try def install instead of yum ?
At the time the script was written yum was still more commonly available... but is gradually being replaced by dnf. Aim for nodejs version 20 if you can. (for now)