Installing
-
2. Setting Up Repository
How to Add Node JS CentOS Repository
-
3. Installing
Finally, to Install Node.js on CentOS
sudo yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1
If Got “User is Not in Sudoers file” then see: How to Enable sudo
(Optional) Requirement for Installing npm Addons
sudo yum install gcc-c++ make
Contents