EL9 - Nodejs

Install nodejs and yarn

# dnf install -y curl dnf-plugins-core
# dnf module list nodejs
# dnf module install -y nodejs:20

# node --version
# npm --version

Yarn

# curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
# dnf install -y yarn

# yarn --version