{"id":811,"date":"2017-11-03T16:29:12","date_gmt":"2017-11-03T21:29:12","guid":{"rendered":"http:\/\/bluegalaxy.info\/codewalk\/?p=811"},"modified":"2017-11-03T17:41:41","modified_gmt":"2017-11-03T22:41:41","slug":"javascript-how-to-install-node-js-on-ubuntu-linux","status":"publish","type":"post","link":"https:\/\/bluegalaxy.info\/codewalk\/2017\/11\/03\/javascript-how-to-install-node-js-on-ubuntu-linux\/","title":{"rendered":"JavaScript: How to install Node.js on Ubuntu Linux"},"content":{"rendered":"<p>To install Node.js version 6.x on Ubuntu Linux VM, start by going here:<br \/>\n<a href=\"https:\/\/nodejs.org\/\">https:\/\/nodejs.org\/<\/a><\/p>\n<p>Click on the DOWNLOADS link at the top, then click on the &#8220;<a href=\"https:\/\/nodejs.org\/en\/download\/package-manager\/\">Installing Node.js via package manager<\/a>&#8221; link. Then under &#8220;<a href=\"https:\/\/nodejs.org\/en\/download\/package-manager\/#debian-and-ubuntu-based-linux-distributions\">Debian and Ubuntu based Linux distributions<\/a>&#8220;, there are two commands to use. Run these commands, in order, in the Ubuntu terminal. Copy and paste these commands one at a time.<\/p>\n<p><strong>Command #1:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">curl -sL https:\/\/deb.nodesource.com\/setup_6.x | sudo -E bash -<\/pre>\n<p>The terminal output will look something like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-819 size-full\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2017\/11\/nodejsinstall1.png\" alt=\"\" width=\"971\" height=\"734\" id=\"img_ds\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2017\/11\/nodejsinstall1.png 971w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2017\/11\/nodejsinstall1-300x227.png 300w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2017\/11\/nodejsinstall1-768x581.png 768w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2017\/11\/nodejsinstall1-676x511.png 676w\" sizes=\"auto, (max-width: 971px) 100vw, 971px\" \/><\/p>\n<p>When this completes, run the second command.<\/p>\n<p><strong>Command #2:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">sudo apt-get install -y nodejs<\/pre>\n<p>The terminal output will look something like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-816 size-full\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2017\/11\/nodejsinstall.png\" alt=\"\" width=\"931\" height=\"747\" id=\"img_ds\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2017\/11\/nodejsinstall.png 931w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2017\/11\/nodejsinstall-300x241.png 300w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2017\/11\/nodejsinstall-768x616.png 768w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2017\/11\/nodejsinstall-676x542.png 676w\" sizes=\"auto, (max-width: 931px) 100vw, 931px\" \/><\/p>\n<p>To double check that Node.js version 6.x was installed, you can run this command in the Ubuntu terminal:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">node --version<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-821 size-full\" src=\"http:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2017\/11\/node_ver.png\" alt=\"\" width=\"364\" height=\"36\" id=\"img_ds\" srcset=\"https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2017\/11\/node_ver.png 364w, https:\/\/bluegalaxy.info\/codewalk\/wp-content\/uploads\/2017\/11\/node_ver-300x30.png 300w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To install Node.js version 6.x on Ubuntu Linux VM, start by going here: https:\/\/nodejs.org\/ Click on the DOWNLOADS link at the top, then click on the &#8220;Installing Node.js via package manager&#8221; link. Then under &#8220;Debian and Ubuntu based Linux distributions&#8220;, there are two commands to use. Run these commands, in order, in the Ubuntu terminal. &hellip; <a href=\"https:\/\/bluegalaxy.info\/codewalk\/2017\/11\/03\/javascript-how-to-install-node-js-on-ubuntu-linux\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">JavaScript: How to install Node.js on Ubuntu Linux<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[45,60,58,59],"class_list":["post-811","post","type-post","status-publish","format-standard","hentry","category-javascript-language","tag-javascript","tag-linux","tag-node-js","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts\/811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/comments?post=811"}],"version-history":[{"count":10,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts\/811\/revisions"}],"predecessor-version":[{"id":837,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/posts\/811\/revisions\/837"}],"wp:attachment":[{"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/media?parent=811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/categories?post=811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bluegalaxy.info\/codewalk\/wp-json\/wp\/v2\/tags?post=811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}