How to install Node.js and NPM on Centos?

Before installation, please check your server operation system, this time we will install node.js on centos 6.7:

Then you can check which yum repository you should use, please read Node.js Binary Distributions to find the yum repository

Step 1. Add node.js yum repository

In my case, I chosed NodeJS 8.x on CentOS 6

Step 2: Install node.js and NPM

After the command complete, node.js and npm are both installed completely (also include some other dependent packages).

 

Step 3: Verify versions

Now we can check the node.js and npm version like below:

 

Bookmark/Favorites

Leave a Reply

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