The easiest way to install the current version of Node JS is with the NodeSource.com setup script. Just modify for Node JS version.
curl -sL https://rpm.nodesource.com/setup_14.x | bash -yum -y install nodejs
Here's how to setup the yarnpkg.com yum repository and install the yarn build tool.
yum -y install pbase-preconfig-yarnyum -y install yarn
More about Node JS
Read more about the Nodesource at:
More about Yarn
Read more about the Node JS system at: