{"id":7824,"date":"2023-06-30T12:34:49","date_gmt":"2023-06-30T12:34:49","guid":{"rendered":"https:\/\/www.infinitivehost.com\/knowledge-base\/?p=7824"},"modified":"2023-06-30T12:34:51","modified_gmt":"2023-06-30T12:34:51","slug":"installing-nodejs-14-x-in-centos-and-rhel","status":"publish","type":"post","link":"https:\/\/www.infinitivehost.com\/knowledge-base\/installing-nodejs-14-x-in-centos-and-rhel\/","title":{"rendered":"Installing NodeJS 14.x in CentOS and RHEL"},"content":{"rendered":"<div class='epvc-post-count'><span class='epvc-eye'><\/span>  <span class=\"epvc-count\"> 7,428<\/span><span class='epvc-label'> Views<\/span><\/div>\n<p>Installing Node.js on CentOS 8\/7 and RHEL 8\/7 Linux servers or desktop workstations will be covered in this guide. With the V8 JavaScript engine at its core, Node.js is a server-side scripting language developed as part of the Google Project. Using Node.js\u2019 event-driven and non-blocking I\/O mechanism, developers can create fast and nimble apps. There are several npm modules that may be used to enhance the capabilities of Node.js.<\/p>\n\n\n\n<p><strong>Step:1<\/strong><\/p>\n\n\n\n<p><strong>To add the repository for the latest version of&nbsp;<\/strong><strong>Node.js 14.x<\/strong><strong>, use the following command as root.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -sL https:\/\/rpm.nodesource.com\/setup_14.x | bash -<\/pre>\n\n\n\n<p><strong>To install&nbsp;<\/strong><strong>Node.js 12. x, use the following command as root.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -sL https:\/\/rpm.nodesource.com\/setup_12.x | bash -<\/pre>\n\n\n\n<p><strong>To install&nbsp;<\/strong><strong>Node.js 10.x, use the following command as root.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -sL https:\/\/rpm.nodesource.com\/setup_10.x | bash -<\/pre>\n\n\n\n<p>Now installing nodejs14 in the system.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"748\" height=\"87\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbimg1.png\" alt=\"Installing NodeJS 14.x in CentOS and RHEL\" class=\"wp-image-7826\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbimg1.png 748w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbimg1-300x35.png 300w\" sizes=\"(max-width: 748px) 100vw, 748px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"522\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbmimg2-1024x522.png\" alt=\"Installing NodeJS 14.x in CentOS and RHEL\" class=\"wp-image-7827\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbmimg2-1024x522.png 1024w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbmimg2-300x153.png 300w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbmimg2-768x391.png 768w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbmimg2.png 1288w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Step: 2<\/strong><\/p>\n\n\n\n<p>Next, you can now install&nbsp;<strong>Nodejs<\/strong>&nbsp;and&nbsp;<strong>NPM<\/strong>&nbsp;on your system using the command below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yum -y install nodejs<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"757\" height=\"163\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbimg3.png\" alt=\"Installing NodeJS 14.x in CentOS and RHEL\" class=\"wp-image-7828\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbimg3.png 757w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbimg3-300x65.png 300w\" sizes=\"(max-width: 757px) 100vw, 757px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"539\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbimg4-1024x539.png\" alt=\"Installing NodeJS 14.x in CentOS and RHEL\" class=\"wp-image-7829\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbimg4-1024x539.png 1024w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbimg4-300x158.png 300w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbimg4-768x404.png 768w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbimg4.png 1289w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Step3: optional:<\/strong><\/p>\n\n\n\n<p><strong>optional<\/strong>: There are development tools such as&nbsp;<strong>GCC-c++<\/strong>&nbsp;and&nbsp;make&nbsp;that you need to have on your system in order to build native addons from&nbsp;<strong>npm<\/strong><\/p>\n\n\n\n<p>Use below command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yum install gcc-c++ make -y <\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"604\" height=\"87\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbimg5.png\" alt=\"Installing NodeJS 14.x in CentOS and RHEL\" class=\"wp-image-7830\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbimg5.png 604w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbimg5-300x43.png 300w\" sizes=\"(max-width: 604px) 100vw, 604px\" \/><\/figure>\n\n\n\n<p>NPM and Nodejs has installed.<\/p>\n\n\n\n<p>To check the version of npm and nodejs, use the below command :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">node -v \n\nnpm -v<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"662\" height=\"84\" src=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbimg6.png\" alt=\"Installing NodeJS 14.x in CentOS and RHEL\" class=\"wp-image-7831\" srcset=\"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbimg6.png 662w, https:\/\/www.infinitivehost.com\/knowledge-base\/wp-content\/uploads\/2023\/06\/node-kbimg6-300x38.png 300w\" sizes=\"(max-width: 662px) 100vw, 662px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>7,428 Views Installing Node.js on CentOS 8\/7 and RHEL 8\/7 Linux servers or desktop workstations will be covered in this guide. With the V8 JavaScript engine at its core, Node.js is a server-side scripting language developed as part of the Google Project. Using Node.js\u2019 event-driven and non-blocking I\/O mechanism, developers can create fast and nimble [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[63],"tags":[],"class_list":["post-7824","post","type-post","status-publish","format-standard","hentry","category-cpanel-whm"],"_links":{"self":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/7824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=7824"}],"version-history":[{"count":2,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/7824\/revisions"}],"predecessor-version":[{"id":7832,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/7824\/revisions\/7832"}],"wp:attachment":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=7824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=7824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=7824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}