How to install Node.js & NPM on CentOS 7

# Prepare OS
yum -y group install "Development Tools"
yum -y install gcc-c++ make

# Install Node.js & NPM
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
yum install -y nodejs

# Install Yarn:
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
yum -y install yarn
Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp