installing NODEJS on remote AWS instance of Red Hat Enterprise Linux 7.1 installing NODEJS on remote AWS instance of Red Hat Enterprise Linux 7.1 linux linux

installing NODEJS on remote AWS instance of Red Hat Enterprise Linux 7.1


You just don't have permissions to install things. It doesn't matter you are running curl with sudo, because what really needs superuser permissions is the bash session inside which you run the script.

So, this would work.

curl --silent --location https://rpm.nodesource.com/setup | sudo bash -


At least on one of our ESXi RedHat virtual machines the easiest way I know to install nodejs is:

    yum install epel-release    yum install nodejs

Let yum do all the heavy lifting :)


You may be running as a non root user.Before running your actual curl command, run

sudo su

Then run (without sudo, since you are now running as root user)

curl --silent --location https://rpm.nodesource.com/setup | bash -