Files

AlmaLinux

# Crypto Policies must be set to SHA1
update-crypto-policies --set DEFAULT:SHA1
reboot

# Import the GPG-Key
rpm --import https://rpm.nodesource.com/gpgkey/nodesource.gpg.key

# Install NodeJS (change Version pub_##.x)
dnf install -y https://rpm.nodesource.com/pub_20.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm
dnf install -y nodejs --setopt=nodesource-nodejs.module_hotfixes=1