DEV Community

Hisyam Johan
Hisyam Johan

Posted on

Installing NodeJS in CentOS 7

You may follow the steps here: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-a-centos-7-server

Follow these steps if have outdated python 3:-
sudo yum install https://repo.ius.io/ius-release-el$(rpm -E '%{rhel}').rpm
sudo yum update -y
sudo yum install -y python3
python3 --version

Follow these steps if you have outdated gcc:-
sudo yum install centos-release-scl
sudo yum install devtoolset-8-gcc*
scl enable devtoolset-8 bash
which gcc
gcc --version

Top comments (0)