HostOnNet Blog

Install Node.js on CentOS 6

Looking for Linux Server Admin or WordPress Expert? We can help.

To install Node.js on CentOS 6, run following commands as user root

curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash -
yum install -y nodejs

Once installed, you have node and npm available.

[root@s45-40-135-102 ~]# node --version
v6.11.2
[root@s45-40-135-102 ~]# npm --version
3.10.10
[root@s45-40-135-102 ~]# 

Now you can install required node modules with npm.

Posted in Linux

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.