install redhat linux nodejs code example
Example 1: install node in redhat linux
# yum -y install nodejs
OR
# dnf -y install nodejs
Example 2: install node in redhat linux
-------------- As root user --------------
# curl -sL https://rpm.nodesource.com/setup_10.x | bash -
-------------- A user with root privileges --------------
$ curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -