{"id":7528,"date":"2015-09-30T22:17:14","date_gmt":"2015-09-30T19:17:14","guid":{"rendered":"http:\/\/www.webcodegeeks.com\/?p=7528"},"modified":"2018-01-05T17:56:04","modified_gmt":"2018-01-05T15:56:04","slug":"node-js-installation-tutorial","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/","title":{"rendered":"Node.js Installation Tutorial"},"content":{"rendered":"<p><em>This article is part of our Academy Course titled <a href=\"http:\/\/www.webcodegeeks.com\/javascript\/node-js\/building-web-apps-with-node-js\">Building web apps with Node.js<\/a>.<\/p>\n<p>In this course, you will get introduced to Node.js. You will learn how to install, configure and run the server and how to load various modules.<\/p>\n<p>Additionally, you will build a sample application from scratch and also get your hands dirty with Node.js command line programming. Check it out <a href=\"http:\/\/www.webcodegeeks.com\/javascript\/node-js\/building-web-apps-with-node-js\">here<\/a>!<\/em><br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n[ulp id=&#8217;7Yp6ijpjjxyeaN8A&#8217;]<\/p>\n<div class=\"toc\">\n<h4>Table Of Contents<\/h4>\n<dl>\n<dt><a href=\"#what_is_node\">1. What is Node.js?<\/a><\/dt>\n<dt><a href=\"#node_package_manager\">2. Node Package Manager<\/a><\/dt>\n<dt><a href=\"#installation\">3. Node.js Installation<\/a><\/dt>\n<dd>\n<dl>\n<dt><a href=\"#installation_ubuntu\">3.1. Install Node.js in Ubuntu Linux from Binary<\/a><\/dt>\n<dt><a href=\"#installation_windows\">3.2. Install Node.js in Windows from Binary<\/a><\/dt>\n<dt><a href=\"#installation_ubuntu_source\">3.3. Build and install Node.js from source code in Ubuntu Linux<\/a><\/dt>\n<dl>\n <\/dd>\n<dt><a href=\"#create_http_server\">4. Creating a http server in Node.js<\/a><\/dt>\n<dt><a href=\"#download\">5. Download the Source Code<\/a><\/dt>\n<\/dl>\n<\/div>\n<h2><a name=\"what_is_node\"><\/a>1. What is Node.js?<\/h2>\n<p>According to <a href=\"http:\/\/nodejs.org\/\" target=\"_blank\">nodejs.org site<\/a>:<\/p>\n<blockquote><p><em>\u201cNode.js is a platform built on Chrome&#8217;s JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I\/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.\u201d<\/em><\/p><\/blockquote>\n<p>Node.js is a platform where we can write server side Javascript and build full-fledged web applications. We can even create web servers based on node.js with a proper security model implemented on top of our application.<\/p>\n<p>Node.js enables programmers to write JavaScript on the server side, which provides access to things like the HTTP stack, TCP, file I\/O, and databases.<\/p>\n<p>We will need to use an event-driven, non-blocking I\/O model for programming a node.js application as the platform is governed by the above model. Node.js is capable of handling concurrent network connections \u2013 so it can be used for data-intensive or real time applications.<\/p>\n<p>Some of the applications that can be built with node.js are:<\/p>\n<ol>\n<li>Web Applications<\/li>\n<li>HTTP Proxy based applications<\/li>\n<li>SMTP Servers used for mail<\/li>\n<\/ol>\n<p>and other applications which are network intensive.<\/p>\n<p>As we mentioned, all programs built with node.js are actually developed using Javascript. So, in order to understand and work with node.js, we expect that the reader has a basic knowledge of Javascript. All of the applications, which we will develop during this course, will be developed with Javascript.<\/p>\n<h2><a name=\"node_package_manager\"><\/a>2. Node Package Manager<\/h2>\n<p>In node.js world, all the libraries for communicating with different applications are maintained as node.js modules. We can install and manage all the modules from the node.js repository using Node Packeage Manager, or NPM. NPM also allows us to manage modules in a local machine in isolated way, allowing different applications installed in the same machine to depend on different versions of the same module without creating conflicts. Also, NPM allows different versions of the same node.js module to coexist in the same application development environment.<\/p>\n<h2><a name=\"installation\"><\/a>3. Node.js Installation<\/h2>\n<p>Node.js can be installed on a Windows or Linux Environment.<\/p>\n<h3><a name=\"installation_ubuntu\"><\/a>3.1. Install Node.js in Ubuntu Linux from Binary<\/h3>\n<p>To install node.js on Ubuntu, we have to go to <a href=\"http:\/\/nodejs.org\/download\/\" target=\"_blank\">http:\/\/nodejs.org\/download\/<\/a>.<\/p>\n<figure style=\"width: 676px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/install_node1.png\"><img decoding=\"async\" alt=\"install_node1\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/install_node1.png\" width=\"676\" height=\"587\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 1<\/figcaption><\/figure>\n<p>We need to select 32-bit or 64-bit linux binaries as per the requirements of our local machine configuration.<\/p>\n<p>For this example we will download the binary file <code>node-v0.10.22-linux-x64.tar.gz<\/code>.<\/p>\n<p>Now we have to open a terminal and perform the following operations:<\/p>\n<p>First we create a directory named <code>nodeinstall<\/code> in our machine root.<\/p>\n<pre class=\"brush:bash\">\r\nsudo mkdir nodeinstall\r\n<\/pre>\n<p>Please note that root privileges are required in order to execute the command.<\/p>\n<p>Now we need to copy the binary using the following command:<\/p>\n<pre class=\"brush:bash\">\r\nsudo cp &lt;&gt;\/node-v0.10.22-linux-x64.tar.gz  \/nodeintsall\/\r\n<\/pre>\n<p>Go to the folder <code>nodeinstall<\/code>.<\/p>\n<pre class=\"brush:bash\">\r\ncd \/nodeinstall\/\r\n<\/pre>\n<p>To untar the linux binary, we will use:<\/p>\n<pre class=\"brush:bash\">\r\nsudo tar -zxvf node-v0.10.22-linux-x64.tar.gz\r\n<\/pre>\n<p>Now go to <code>\/node-v0.10.22-linux-x64\/bin<\/code> folder.<\/p>\n<pre class=\"brush:bash\">\r\ncd \/node-v0.10.22-linux-x64\/bin\r\n<\/pre>\n<p>Now simply run <code>node<\/code> from command prompt.<\/p>\n<pre class=\"brush:bash\">\r\nnode\r\n<\/pre>\n<p>The node.js console will open a node.js interactive console through the Node.js Read-Eval-Print Loop (REPL), to which we can send JavaScript commands.<\/p>\n<p>It will show a prompt with \u201c&gt;\u201d.<\/p>\n<p>Now to quickly check whether everything is fine or not, we will use the following in node.js prompt:<\/p>\n<pre class=\"brush:bash\">\r\nconsole.log(\"hello world\");\r\n<\/pre>\n<p>The Output must match the following screen.<\/p>\n<figure style=\"width: 627px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/nodeConsole_hello_world.png\"><img decoding=\"async\"  alt=\"nodeConsole_hello_world\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/nodeConsole_hello_world.png\" width=\"627\" height=\"109\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 2<\/figcaption><\/figure>\n<p>The \u201chello world\u201d will be prompted in the node.js console. Also we have \u201cundefined\u201d written below the content. Here the <code>REPL<\/code> will print the value of expression here. Here, since the <code>console.log<\/code> function is returning nothing, the variable value will be printed as \u201cundefined\u201d.<\/p>\n<p>To exit from the node console, we need to press \u2013 <code>ctrl+z<\/code> or <code>ctrl+c<\/code> (twice).<\/p>\n<h3><a name=\"installation_windows\"><\/a>3.2. Install Node.js in Windows from Binary<\/h3>\n<p>Download the Windows installation file from the Node.js site. Double click on the setup file. It will open the installation window.<\/p>\n<figure style=\"width: 510px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/node_setup1.png\"><img decoding=\"async\" alt=\"node_setup1\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/node_setup1.png\" width=\"510\" height=\"398\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 3<\/figcaption><\/figure>\n<p>Click on Next.<\/p>\n<figure style=\"width: 510px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/node_setup2.png\"><img decoding=\"async\"  alt=\"node_setup2\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/node_setup2.png\" width=\"510\" height=\"398\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 4<\/figcaption><\/figure>\n<p>Click on the check-box of &#8220;I accept the terms in the License Agreement&#8221;, then click Next.<\/p>\n<figure style=\"width: 508px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/node_setup3.png\"><img decoding=\"async\"  alt=\"node_setup3\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/node_setup3.png\" width=\"508\" height=\"401\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 5<\/figcaption><\/figure>\n<p>Provide the installation path where the application will be installed.<\/p>\n<figure style=\"width: 509px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/node_setup4.png\"><img decoding=\"async\"  alt=\"node_setup4\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/node_setup4.png\" width=\"509\" height=\"398\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 6<\/figcaption><\/figure>\n<p>Click Next.<\/p>\n<figure style=\"width: 511px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/node_setup5.png\"><img decoding=\"async\" alt=\"node_setup5\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/node_setup5.png\" width=\"511\" height=\"397\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 7<\/figcaption><\/figure>\n<p>Click Install.<\/p>\n<figure style=\"width: 511px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/node_setup6.png\"><img decoding=\"async\"  alt=\"node_setup6\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/node_setup6.png\" width=\"511\" height=\"398\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 8<\/figcaption><\/figure>\n<p>It will take some time to install. Do not cancel the installation.<\/p>\n<p>After completion we will be provided with the following image:<\/p>\n<figure style=\"width: 511px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/node_setup7.png\"><img decoding=\"async\"  alt=\"node_setup7\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/node_setup7.png\" width=\"511\" height=\"396\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 9<\/figcaption><\/figure>\n<p>Click Finish to complete the installation.<\/p>\n<p>Now simply run <code>node<\/code> from command prompt.<\/p>\n<pre class=\"brush:bash\">\r\nnode\r\n<\/pre>\n<p>The node.js console will open a node.js interactive console through <code>Node.js Read-Eval-Print Loop<\/code> (REPL), to which we can send <code>JavaScript<\/code> commands.<\/p>\n<p>It will show a prompt with \u201c&gt;\u201d.<\/p>\n<p>Now to quick check whether everything is fine or not we will use the following in node.js prompt:<\/p>\n<pre class=\"brush:bash\">\r\nconsole.log(\"hello world\");\r\n<\/pre>\n<p>The Output must match the following screen.<\/p>\n<figure style=\"width: 680px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/nodeConsoleCommand_hello_world.png\"><img decoding=\"async\" alt=\"nodeConsoleCommand_hello_world\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/nodeConsoleCommand_hello_world.png\" width=\"680\" height=\"205\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 10<\/figcaption><\/figure>\n<p>The \u201chello world\u201d will be prompted in the node.js console. Also we have \u201cundefined\u201d writen below the content. Here the REPL will print the value of expression here. Here as console.log function is returning nothing, the variable value will be printed as \u201cundefined\u201d.<\/p>\n<p>To exit from the node console, we need to press \u2013 ctrl+c (twice).<\/p>\n<h3><a name=\"installation_ubuntu_source\"><\/a>3.3. Build and install Node.js from source code in Ubuntu Linux<\/h3>\n<p>We need to download the binary file <code>node-v0.10.22.tar.gz<\/code> as per our machine configuration.<\/p>\n<p>Now we have to open a terminal for the following operations:<\/p>\n<p>First we create a directory <code>nodesourceinstall<\/code> in our machine root.<\/p>\n<pre class=\"brush:bash\">\r\nsudo mkdir nodesourceinstall\r\n<\/pre>\n<p>Please note that root privileges are required in order to execute the command.<\/p>\n<p>Now we need to copy the binary using the following command:<\/p>\n<pre class=\"brush:bash\">\r\nsudo cp &lt;&gt;\/node-v0.10.22.tar.gz  \/nodesourceintsall\/\r\n<\/pre>\n<p>Go to the folder <code>nodesourceinstall<\/code>.<\/p>\n<pre class=\"brush:bash\">\r\ncd \/nodesourceinstall\/\r\n<\/pre>\n<p>To untar the linux binary, we will use:<\/p>\n<pre class=\"brush:bash\">\r\nsudo tar -zxvf node-v0.10.22.tar.gz\r\n<\/pre>\n<p>Now go to <code>\/node-v0.10.22\/<\/code> folder.<\/p>\n<pre class=\"brush:bash\">\r\ncd \/node-v0.10.22\/\r\n<\/pre>\n<p>Now the hard work. (Following 3 commands are to be executed one-by-one):<\/p>\n<pre class=\"brush:bash\">\r\nsudo .\/configure\r\n<\/pre>\n<p>We need to give the root password as needed.<\/p>\n<p>Next is:<\/p>\n<pre class=\"brush:bash\">\r\nsudo make\r\n<\/pre>\n<p>The third one is:<\/p>\n<pre class=\"brush:bash\">\r\nsudo make install\r\n<\/pre>\n<p>Now we will run node from command prompt:<\/p>\n<pre class=\"brush:bash\">\r\nnode\r\n<\/pre>\n<p>The node.js console will open a node.js interactive console through Node.js Read-Eval-Print Loop (REPL), to which we can send JavaScript commands.<\/p>\n<p>It will show a prompt with \u201c&gt;\u201d.<\/p>\n<p>Now to quick check whether everything is fine or not we will use the following in node.js prompt:<\/p>\n<pre class=\"brush:bash\">\r\nconsole.log(\"hello world\");\r\n<\/pre>\n<p>The Output must match the following screen.<\/p>\n<figure style=\"width: 627px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/nodeConsole_hello_world2.png\"><img decoding=\"async\" alt=\"nodeConsole_hello_world2\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/nodeConsole_hello_world2.png\" width=\"627\" height=\"109\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 11<\/figcaption><\/figure>\n<p>The \u201chello world\u201d will be prompted in the node.js console. Also we have \u201cundefined\u201d written below the content. Here, the REPL will print the value of expression here. Here as console.log function is returning nothing, the variable value will be printed as \u201cundefined\u201d.<\/p>\n<p>To exit from the node console, we need to press \u2013 ctrl+z or ctrl+c (twice).<\/p>\n<h2><a name=\"create_http_server\"><\/a>4. Creating a http server in Node.js<\/h2>\n<p>To get a quick handle on node.js applications, we can write a simple http server in node.js.<\/p>\n<p>Procedures:<\/p>\n<ol>\n<li>We will create a folder named <code>nodeapps<\/code> in our machine.<\/li>\n<li>We will create a file named <code>sampleserver.js<\/code> in the folder.<\/li>\n<\/ol>\n<p>And we will write the following code in the sampleservers.js file, as follows:<\/p>\n<p><em><span style=\"text-decoration: underline;\">sampleserver.js:<\/span><\/em><\/p>\n<pre class=\"brush:js\">\r\nvar http = require('http');\r\n\r\nfunction dealWithWebRequest(request, response) {\r\n  response.writeHead(200, {\"Content-Type\": \"text\/plain\"});\r\n  response.write(\"Hello Node.js\");\r\n  response.end();\r\n}\r\n\r\nvar webserver = http.createServer(dealWithWebRequest).listen(8124,\"127.0.0.1\");\r\n\r\nwebserver.once('listening', function() {\r\n\tconsole.log('Server running at http:\/\/127.0.0.1:8124\/');\r\n});\r\n<\/pre>\n<p>Now we will run the following command in the Linux terminal using the node.js executable:<\/p>\n<pre class=\"brush:bash\">\r\nnode sampleserver.js\r\n<\/pre>\n<p>We will have the following message in the console (<code>Server running at http:\/\/127.0.0.1:8124\/<\/code>).<\/p>\n<figure style=\"width: 603px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/nodeConsole_runServer.png\"><img decoding=\"async\" alt=\"nodeConsole_runServer\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/nodeConsole_runServer.png\" width=\"603\" height=\"72\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 12<\/figcaption><\/figure>\n<p>If we point the web browser to the previous URL, we will have following output:<\/p>\n<figure style=\"width: 391px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/nodeBrowser_Hello_Node.png\"><img decoding=\"async\" alt=\"nodeBrowser_Hello_Node\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/nodeBrowser_Hello_Node.png\" width=\"391\" height=\"241\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 13<\/figcaption><\/figure>\n<p>Now let&#8217;s explain the above node.js code.<\/p>\n<ol>\n<li><code>var http = require('http');<\/code>\n<p>We are using the Node.js <code>http<\/code> module. We are doing a lookup for the http module in the function call. We are calling the http module and assign the functionality to any variable (here it is &#8220;http&#8221;). This variable further serves for functional references in next calls.<\/li>\n<li><code>var webserver = http.createServer(dealWithWebRequest).listen(8124,\"127.0.0.1\");<\/code>\n<p>http.createServer will create a http server here and will assign it to variable <code>webserver<\/code>. Also, at the end of the closure, the TCP port and server address are given. These define where the server will run. Here, the server address is 127.0.0.1 and the TCP port is 8124.<\/p>\n<p>We&#8217;re binding the function to the server request event. This event will fire when server receives a HTTP request. This function will be called for every request that this server receives, and we need to pass two objects as arguments: HTTP request and HTTP response. The response object will be responsible for the reply message to the client.<\/li>\n<li>\n<pre class=\"brush:js\">function dealWithWebRequest(request, response) {\r\n        \/\/Some code here\r\n}\r\n<\/pre>\n<p>This is the callback function, which is passed as argument in htttp.createServer(&#8230;) module which is a normal function passing as argument in Javascript.<\/li>\n<li>Three inner lines in the function:\n<pre class=\"brush:js\">\r\n    response.writeHead(200, {'Content-Type': 'text\/plain'});\r\n    response.write('Hello Node.js\\\\n');\r\n    response.end();\r\n<\/pre>\n<p>We are writing an HTTP header specifying the content type of the response. So, for this sample server we have set the content type as text\/plain in the first line.<\/p>\n<p>Next, we are writing the message with <code>response.write<\/code> and ending the HTTP server response object to render message to the browser. This means the <code>response.end<\/code> will send the message to browser and tell HTTP Protocol to end the response.<\/p>\n<pre class=\"brush:js\">\r\n        response.write('Hello Node.js\\\\n');\r\n        response.end();\r\n<\/pre>\n<\/li>\n<li>After completing the whole work we have the listener setup for the server\n<pre class=\"brush:js\">\r\n     server.once('listening', function() {\r\n        console.log('Server running at http:\/\/127.0.0.1:8124\/');\r\n     });\r\n<\/pre>\n<p>Once the server is listening on that port, the listening event is firing. We have instructed node.js to log a message in that particular listening event.\n<\/li>\n<\/ol>\n<h2><a name=\"download\"><\/a>5. Download the Source Code<\/h2>\n<p>This was a tutorial of installing Node.js. You may download the source code of this tutorial here: <a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/09\/SampleServer.zip\"><strong>SampleServer.zip<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article is part of our Academy Course titled Building web apps with Node.js. In this course, you will get introduced to Node.js. You will learn how to install, configure and run the server and how to load various modules. Additionally, you will build a sample application from scratch and also get your hands dirty &hellip;<\/p>\n","protected":false},"author":18,"featured_media":924,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-7528","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-node-js"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Node.js Installation Tutorial - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"This article is part of our Academy Course titled Building web apps with Node.js. In this course, you will get introduced to Node.js. You will learn how\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Node.js Installation Tutorial - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"This article is part of our Academy Course titled Building web apps with Node.js. In this course, you will get introduced to Node.js. You will learn how\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:author\" content=\"http:\/\/www.facebook.com\/phlocblogger\" \/>\n<meta property=\"article:published_time\" content=\"2015-09-30T19:17:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-05T15:56:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/nodejs-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Piyas De\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/phloxblog\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Piyas De\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/\"},\"author\":{\"name\":\"Piyas De\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/7aab6e040a06f0dfe0d60c27768aa424\"},\"headline\":\"Node.js Installation Tutorial\",\"datePublished\":\"2015-09-30T19:17:14+00:00\",\"dateModified\":\"2018-01-05T15:56:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/\"},\"wordCount\":1667,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/nodejs-logo.jpg\",\"articleSection\":[\"Node.js\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/\",\"name\":\"Node.js Installation Tutorial - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/nodejs-logo.jpg\",\"datePublished\":\"2015-09-30T19:17:14+00:00\",\"dateModified\":\"2018-01-05T15:56:04+00:00\",\"description\":\"This article is part of our Academy Course titled Building web apps with Node.js. In this course, you will get introduced to Node.js. You will learn how\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/nodejs-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/nodejs-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/javascript\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Node.js\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/javascript\/node-js\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Node.js Installation Tutorial\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/7aab6e040a06f0dfe0d60c27768aa424\",\"name\":\"Piyas De\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eadd6728b7b5be23f0d6585da1a953926e49c6f2369703d6cb4f1147d4dd2203?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eadd6728b7b5be23f0d6585da1a953926e49c6f2369703d6cb4f1147d4dd2203?s=96&d=mm&r=g\",\"caption\":\"Piyas De\"},\"description\":\"Piyas is Sun Microsystems certified Enterprise Architect with 10+ years of professional IT experience in various areas such as Architecture Definition, Define Enterprise Application, Client-server\/e-business solutions.Currently he is engaged in providing solutions for digital asset management in media companies.He is also founder and main author of \\\"Technical Blogs (Blog about small technical Know hows)\\\"\",\"sameAs\":[\"http:\/\/www.phloxblog.in\",\"http:\/\/www.facebook.com\/phlocblogger\",\"http:\/\/in.linkedin.com\/in\/piyasde\",\"https:\/\/x.com\/https:\/\/twitter.com\/phloxblog\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/piyas-de\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Node.js Installation Tutorial - Web Code Geeks - 2026","description":"This article is part of our Academy Course titled Building web apps with Node.js. In this course, you will get introduced to Node.js. You will learn how","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:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/","og_locale":"en_US","og_type":"article","og_title":"Node.js Installation Tutorial - Web Code Geeks - 2026","og_description":"This article is part of our Academy Course titled Building web apps with Node.js. In this course, you will get introduced to Node.js. You will learn how","og_url":"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_author":"http:\/\/www.facebook.com\/phlocblogger","article_published_time":"2015-09-30T19:17:14+00:00","article_modified_time":"2018-01-05T15:56:04+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/nodejs-logo.jpg","type":"image\/jpeg"}],"author":"Piyas De","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/phloxblog","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Piyas De","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/"},"author":{"name":"Piyas De","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/7aab6e040a06f0dfe0d60c27768aa424"},"headline":"Node.js Installation Tutorial","datePublished":"2015-09-30T19:17:14+00:00","dateModified":"2018-01-05T15:56:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/"},"wordCount":1667,"commentCount":1,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/nodejs-logo.jpg","articleSection":["Node.js"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/","url":"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/","name":"Node.js Installation Tutorial - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/nodejs-logo.jpg","datePublished":"2015-09-30T19:17:14+00:00","dateModified":"2018-01-05T15:56:04+00:00","description":"This article is part of our Academy Course titled Building web apps with Node.js. In this course, you will get introduced to Node.js. You will learn how","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/nodejs-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/nodejs-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/javascript\/node-js\/node-js-installation-tutorial\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"JavaScript","item":"https:\/\/www.webcodegeeks.com\/category\/javascript\/"},{"@type":"ListItem","position":3,"name":"Node.js","item":"https:\/\/www.webcodegeeks.com\/category\/javascript\/node-js\/"},{"@type":"ListItem","position":4,"name":"Node.js Installation Tutorial"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/7aab6e040a06f0dfe0d60c27768aa424","name":"Piyas De","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/eadd6728b7b5be23f0d6585da1a953926e49c6f2369703d6cb4f1147d4dd2203?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eadd6728b7b5be23f0d6585da1a953926e49c6f2369703d6cb4f1147d4dd2203?s=96&d=mm&r=g","caption":"Piyas De"},"description":"Piyas is Sun Microsystems certified Enterprise Architect with 10+ years of professional IT experience in various areas such as Architecture Definition, Define Enterprise Application, Client-server\/e-business solutions.Currently he is engaged in providing solutions for digital asset management in media companies.He is also founder and main author of \"Technical Blogs (Blog about small technical Know hows)\"","sameAs":["http:\/\/www.phloxblog.in","http:\/\/www.facebook.com\/phlocblogger","http:\/\/in.linkedin.com\/in\/piyasde","https:\/\/x.com\/https:\/\/twitter.com\/phloxblog"],"url":"https:\/\/www.webcodegeeks.com\/author\/piyas-de\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/7528","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=7528"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/7528\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/924"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=7528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=7528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=7528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}