Guide to Install Node.js on CentOS 6/7

Have a website which needs Node.js to work and have no idea how to install it on your Server? No Problem, this guide will how you how you can install Node.js on your Server with CentOS Machine.


  • Server with CentOS 6/7
  • Root Access to Server


  1. Login to Server using SSH
  2. Add Node.js repo to your machine using
    For Node.js 8

    curl –silent –location | sudo bash –

    For Node.js 9

    curl –silent –location | sudo bash –

  3. Install Node.js package using yum

    sudo yum -y install nodejs -y

  4. Check Node.js Version using following command.

    node –version

With these four small steps we have finished installation of Node.js on CentOS Machine

Similar Posts