{"id":5440,"date":"2016-10-10T07:38:59","date_gmt":"2016-10-10T07:38:59","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=5440"},"modified":"2021-02-02T10:47:38","modified_gmt":"2021-02-02T10:47:38","slug":"easy-way-install-node-js-centos","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/","title":{"rendered":"Easy way to install Node.JS on CentOS"},"content":{"rendered":"<p>Node.js is a Javascript programming platform that allows users to build network applications very easily. Many developers want to build applications and libraries using JavaScript (server-side and client-side).<!--more--><\/p>\n<p>Previously I posted a tutorial about how to get it<a href=\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-node-js-on-ubuntu-14-04\/\"> installed on Ubuntu server<\/a> and today, I will show you how to make it done on CentOS.<\/p>\n<h2>PREREQUISITE<\/h2>\n<ol>\n<li>A working CentOS server.<\/li>\n<li>Windows users should download Putty while Mac and Linux users can simply use Terminal<\/li>\n<li>You\u2019ll also need to have a basic skill to <a href=\"https:\/\/cpanelplesk.com\/wp62\/using-putty-connect-server-ssh-windows\/\">use Putty<\/a> and to navigate through SSH.<\/li>\n<li>Your server must have necessary software to host a website. In this case are: <a href=\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-linux-apache-mysql-php-on-centos-6-x\/\">Apache, PHP5, and MySQL<\/a><\/li>\n<li>About 15 minutes of your time and a cup of tea<\/li>\n<\/ol>\n<p><strong>Step-1<\/strong> Login to your server as root user.<\/p>\n<p>First update with YUM<\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>yum update -y<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p>This process will take some time to complete<\/p>\n<p><strong>Step-2<\/strong> Next, we may need to install related dependencies:<\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>yum -y groupinstall \"Development Tools\"<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><strong>Step-3<\/strong> Now issue following command to install Git on CentOS<\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>yum -y install git<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><strong>Step-4<\/strong> Next need to issue several commands to start installing Node.js<\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>git clone git:\/\/github.com\/joyent\/node.git<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p>Next, now go to the node directory:<\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>cd node<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p>Now let&#8217;s start the configuration:<\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>.\/configure<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p>Now type make and hit Enter. This would take more than 5 minutes to complete.<\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>make<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p>Finally, Run this last command syntax to build up Node.js from its official Git that we\u2019ve just cloned before:<\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>make install<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p>Congratulation, you have installed Node.js successfully.<\/p>\n<p>Now you can confirm which version of NodeJS is installed using below commnad:<\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>node --version<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p>So this is all you have to do, Please Give your opinion below if you experience any issues or to discuss your ideas and experiences.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Node.js is a Javascript programming platform that allows users to build network applications very easily. Many developers want to build applications and libraries using JavaScript (server-side and client-side). [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":3556,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,14],"tags":[],"class_list":["post-5440","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","category-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Easy way to install Node.JS on CentOS - cPanel Plesk<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Easy way to install Node.JS on CentOS - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"Node.js is a Javascript programming platform that allows users to build network applications very easily. Many developers want to build applications and libraries using JavaScript (server-side and client-side). [...]Continue Reading...\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/nodejs-e1457075750839.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Seemab Saleem\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/\"},\"author\":{\"name\":\"Seemab Saleem\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\"},\"headline\":\"Easy way to install Node.JS on CentOS\",\"datePublished\":\"2016-10-10T07:38:59+00:00\",\"dateModified\":\"2021-02-02T10:47:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/\"},\"wordCount\":272,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/nodejs-e1457075750839.png\",\"articleSection\":[\"Cpanel\",\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/\",\"name\":\"Easy way to install Node.JS on CentOS - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/nodejs-e1457075750839.png\",\"datePublished\":\"2016-10-10T07:38:59+00:00\",\"dateModified\":\"2021-02-02T10:47:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/#primaryimage\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/nodejs-e1457075750839.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/nodejs-e1457075750839.png\",\"width\":200,\"height\":200},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Easy way to install Node.JS on CentOS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\",\"name\":\"Seemab Saleem\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"caption\":\"Seemab Saleem\"},\"description\":\"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!\",\"sameAs\":[\"https:\/\/cpanelplesk.com\/wp62\"],\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Easy way to install Node.JS on CentOS - cPanel Plesk","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/","twitter_card":"summary_large_image","twitter_title":"Easy way to install Node.JS on CentOS - cPanel Plesk","twitter_description":"Node.js is a Javascript programming platform that allows users to build network applications very easily. Many developers want to build applications and libraries using JavaScript (server-side and client-side). [...]Continue Reading...","twitter_image":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/nodejs-e1457075750839.png","twitter_misc":{"Written by":"Seemab Saleem","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/"},"author":{"name":"Seemab Saleem","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648"},"headline":"Easy way to install Node.JS on CentOS","datePublished":"2016-10-10T07:38:59+00:00","dateModified":"2021-02-02T10:47:38+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/"},"wordCount":272,"commentCount":0,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/nodejs-e1457075750839.png","articleSection":["Cpanel","Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/","url":"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/","name":"Easy way to install Node.JS on CentOS - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/#primaryimage"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/nodejs-e1457075750839.png","datePublished":"2016-10-10T07:38:59+00:00","dateModified":"2021-02-02T10:47:38+00:00","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/#primaryimage","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/nodejs-e1457075750839.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/03\/nodejs-e1457075750839.png","width":200,"height":200},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"Easy way to install Node.JS on CentOS"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648","name":"Seemab Saleem","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","caption":"Seemab Saleem"},"description":"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!","sameAs":["https:\/\/cpanelplesk.com\/wp62"],"url":"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/5440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=5440"}],"version-history":[{"count":0,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/5440\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media\/3556"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=5440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=5440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=5440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}