{"id":2895,"date":"2022-09-06T10:25:30","date_gmt":"2022-09-06T10:25:30","guid":{"rendered":"https:\/\/www.checkmateq.com\/blog\/?p=2895"},"modified":"2023-08-04T16:08:33","modified_gmt":"2023-08-04T16:08:33","slug":"install-node-js","status":"publish","type":"post","link":"https:\/\/www.checkmateq.com\/blog\/install-node-js","title":{"rendered":"How to install Node.js in Linux and Windows"},"content":{"rendered":"<p><strong><a href=\"https:\/\/www.checkmateq.com\/node-js-development\">Node.js<\/a> is a JavaScript runtime built on Chrome&#8217;s V8 Javascript engine. It is designed for building scalable network applications.<\/strong><\/p>\n<p>In this blog, we will see how to install Node.js on a CentOS 8 machine. First, we will <a href=\"https:\/\/nodejs.org\/en\/download\/current\/\">install<\/a> the recent stable version of node.<\/p>\n<h2>Installing node.js in Linux<\/h2>\n<p><strong>Step1: Add node.js repository<\/strong><\/p>\n<pre>sudo dnf install -y nodejs\r\ncurl -sL https:\/\/rpm.nodesource.com\/setup_16.x | sudo -E bash - \r\n<\/pre>\n<p><strong>Step2: Install node.js<\/strong><\/p>\n<pre>sudo dnf install -y nodejs \r\n<\/pre>\n<p><strong>Step3: Check the version to confirm the installation<\/strong><\/p>\n<p>Installing node also installs the package manager npm. We can check it with the following commands.<\/p>\n<pre>node -v\r\nnpm -v\r\n<\/pre>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-2904\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/hire-java-developers-300x64.png\" alt=\"\" width=\"741\" height=\"158\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/hire-java-developers-300x64.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/hire-java-developers-768x165.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/hire-java-developers.png 901w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>To upgrade the npm version use the following command.<\/p>\n<pre>sudo npm install -g npm\r\n<\/pre>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-2932\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-CMS-development-300x91.png\" alt=\"\" width=\"745\" height=\"226\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-CMS-development-300x91.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-CMS-development-1024x309.png 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-CMS-development-768x232.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-CMS-development.png 1092w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<h2>Installing node.js in Windows 11<\/h2>\n<h3>Step 1: Download the &#8216;.msi&#8217; installer.<\/h3>\n<ul>\n<li>Visit the following link and download the installer.<\/li>\n<\/ul>\n<pre>https:\/\/nodejs.org\/en\/\r\n<\/pre>\n<ul>\n<li>We will download the LTS version.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-2935\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-e-commerce-development-300x126.png\" alt=\"\" width=\"743\" height=\"312\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-e-commerce-development-300x126.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-e-commerce-development-1024x430.png 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-e-commerce-development-768x322.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-e-commerce-development.png 1132w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<h3>Step2: Run the installer<\/h3>\n<ul>\n<li>Run the installer by double click on it.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-2937\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-server-support-300x231.png\" alt=\"\" width=\"742\" height=\"571\" \/><\/p>\n<ul>\n<li>Click <strong>Next<\/strong>.<\/li>\n<li>Accept the license agreement and click<strong> Next<\/strong>.<\/li>\n<li>Select the destination folder where you want to install node and click <strong>Next<\/strong>.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-2938\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-mobile-app-development-company-300x224.png\" alt=\"Node.js\" width=\"749\" height=\"559\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-mobile-app-development-company-300x224.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-mobile-app-development-company.png 768w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<ul>\n<li>Select<strong> Next<\/strong> in Custom setup.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-2939\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-offshore-product-development-300x234.png\" alt=\"Node.js\" width=\"753\" height=\"587\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-offshore-product-development-300x234.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-offshore-product-development.png 754w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<ul>\n<li>Allow to automatically install necessary tools and select Next.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-2941\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-game-development-company-300x234.png\" alt=\"\" width=\"745\" height=\"581\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-game-development-company-300x234.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-game-development-company.png 760w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<ul>\n<li>Click <strong>Install<\/strong>.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-2940\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-graphic-design-services-300x232.png\" alt=\"\" width=\"744\" height=\"575\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-graphic-design-services-300x232.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-graphic-design-services.png 760w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<ul>\n<li>Click <strong>Finish<\/strong> after successful installation.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-2942\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-offshore-it-service-300x232.png\" alt=\"Node.js\" width=\"744\" height=\"575\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-offshore-it-service-300x232.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Checkmate-offshore-it-service.png 766w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<ul>\n<li>Next, additional tools will be installed. Press any key to continue.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-2944\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Hire-full-stack-development-engineer-300x145.png\" alt=\"Node.js\" width=\"743\" height=\"359\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Hire-full-stack-development-engineer-300x145.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Hire-full-stack-development-engineer-1024x496.png 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Hire-full-stack-development-engineer-768x372.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Hire-full-stack-development-engineer-1200x582.png 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/Hire-full-stack-development-engineer.png 1339w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<ul>\n<li>Once completed, confirm installation by running the following command in PowerShell or command prompt.<\/li>\n<\/ul>\n<pre>node -v\r\nnpm -v\r\n<\/pre>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-2945\" src=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/hire-python-developer-300x60.png\" alt=\"Node.js\" width=\"745\" height=\"149\" srcset=\"https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/hire-python-developer-300x60.png 300w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/hire-python-developer-1024x206.png 1024w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/hire-python-developer-768x155.png 768w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/hire-python-developer-1536x309.png 1536w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/hire-python-developer-1200x241.png 1200w, https:\/\/www.checkmateq.com\/blog\/wp-content\/uploads\/2022\/09\/hire-python-developer.png 1839w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p><a href=\"https:\/\/www.checkmateq.com\/\">Please contact<\/a> our technical consultants if you have anything related to <a href=\"https:\/\/www.checkmateq.com\/full-stack-development\">software development<\/a> to be discussed.<\/p>\n<div class=\"heateor_sss_sharing_container heateor_sss_vertical_sharing heateor_sss_bottom_sharing\" data-heateor-sss-href=\"https:\/\/www.checkmateq.com\/blog\/python-script-to-get-slack-notification-for-out-of-memory-string-in-log-file\/\">\n<div class=\"heateor_sss_sharing_ul\"><\/div>\n<div class=\"heateorSssClear\"><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Node.js is a JavaScript runtime built on Chrome&#8217;s V8 Javascript engine. It is designed for building scalable network applications. In this blog, we will see how to install Node.js on a CentOS 8 machine. First, we will install the recent stable version of node. Installing node.js in Linux Step1: Add node.js repository sudo dnf install &hellip; <a href=\"https:\/\/www.checkmateq.com\/blog\/install-node-js\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to install Node.js in Linux and Windows&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":2907,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,75],"tags":[3,2,71,70,69,68,6],"_links":{"self":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/2895"}],"collection":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/comments?post=2895"}],"version-history":[{"count":16,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/2895\/revisions"}],"predecessor-version":[{"id":4243,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/posts\/2895\/revisions\/4243"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/media\/2907"}],"wp:attachment":[{"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/media?parent=2895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/categories?post=2895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.checkmateq.com\/blog\/wp-json\/wp\/v2\/tags?post=2895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}