{"id":7384,"date":"2019-06-12T10:38:46","date_gmt":"2019-06-12T10:38:46","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=7384"},"modified":"2023-02-15T12:46:48","modified_gmt":"2023-02-15T07:16:48","slug":"how-to-install-node-js-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/","title":{"rendered":"How to Install Node.js on Ubuntu 16.04"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p><strong>Node.js<\/strong> is the server-side JavaScript runtime platform that performs JS code outside of the browser. Also, it is the open-source platform for JavaScript programming that allows developers to create server-side tools and applications.<\/p>\n<p>In this guide, we&#8217;ll show you about installing Node.js on an Ubuntu 16.04 server.<\/p>\n<h2>Prerequisites<\/h2>\n<p>This guide presumes that you are using Ubuntu 16.04. Before you start, you should have a non-root user account with <strong><em>sudo<\/em><\/strong> rights set up on your system.<\/p>\n<h2>How to Install the Distro-Stable Version for Ubuntu?<\/h2>\n<p>Ubuntu 16.04 contains a Node.js version within its default repositories that could be used to simply give a constant experience over various systems. The version in the repositories is v4.2.6 at the time of writing. It&#8217;s not the latest version, but it should be completely stable and enough for fast experimentation with the language.<\/p>\n<p>So as to get this version, we simply need to use the <strong><em>apt<\/em><\/strong> package manager. At first, we have to refresh our local package index and after that install from the repositories:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>sudo apt-get update<\/div>\n<div>sudo apt-get install nodejs<\/div>\n<\/div>\n<p>If the package in the repositories suits your requirements, this is all you have to do to get set up with Node.js. Much of the time, you&#8217;ll also need to also install <strong><em>npm<\/em><\/strong>, which is the Node.js package manager. You can do this by writing:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>sudo apt-get install npm<\/div>\n<\/div>\n<p>The executable from the Ubuntu repositories is called <strong><em>nodejs<\/em><\/strong> instead of <strong><em>node<\/em><\/strong> because of a conflict with another package. Just keep this in mind as you are running the software.<\/p>\n<p>Type the following line to check Node.js version you have installed:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>nodejs -v<\/div>\n<\/div>\n<p>Once you have set up Node.js version you have installed from the Ubuntu repositories, you can choose whether or not you might want to work with different versions, package archives, or version managers. Next, we&#8217;ll talk about these elements along with more flexible and robust methods of installation.<\/p>\n<h4 style=\"background-color: #D5EAFF; padding: 10px;\">Pick A <a href=\"https:\/\/www.milesweb.in\/hosting\/nodejs-hosting\" target=\"_blank\" rel=\"noopener\">Node Js Hosting Server<\/a> Plans for Better Deployment!<\/h4>\n<h2>How to Install Using a PPA (Personal Package Archive)?<\/h2>\n<p>An option that can get you a more current version of Node.js is to add a <strong>PPA (Personal Package Archive)<\/strong> managed by NodeSource. This will have more recent versions of Node.js than the official Ubuntu repositories and allows you to select between Node.js v4.x, Node.js v6.x and Node.js v8.x (the current LTS version, supported till December of 2019).<\/p>\n<p>Initially, you have to install the PPA so as to get access to its contents. Ensure you are in your home directory and utilise the <strong><em>curl<\/em><\/strong> to recover the installation script for your selected version, ensuring to replace <span style=\"color: #ff0000;\">8.x<\/span> with your preferred version string (if different):<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>cd ~<\/div>\n<div>curl -sL https:\/\/deb.nodesource.com\/setup_8.x -o nodesource_setup.sh<\/div>\n<\/div>\n<p>You can inspect the contents of this script with <strong>nano<\/strong> (or your text editor would you like to use):<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>nano nodesource_setup.sh<\/div>\n<\/div>\n<p>And run the script under <strong>sudo<\/strong>:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>sudo bash nodesource_setup.sh<\/div>\n<\/div>\n<p>The PPA will be added to your configuration and your local cache is going to be updated automatically. Once running the setup script from nodesource, you&#8217;ll install the Node.js package similarly as you did above:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>sudo apt-get install nodejs<\/div>\n<\/div>\n<p>Type the following line to check Node.js version you have installed after these initial steps:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>nodejs \u2013v<\/div>\n<div>&nbsp;<\/div>\n<div><strong><em>Output<\/em><\/strong><\/div>\n<div>v8.10.0<\/div>\n<\/div>\n<p>The <strong>nodejs<\/strong> package includes the <strong>nodejs<\/strong> binary and <strong>npm<\/strong>, so it&#8217;s not necessary to install <strong>npm<\/strong> separately.<\/p>\n<p><strong>npm<\/strong> utilizes a configuration file into your home directory to maintain track of updates. It will be built the first time you run <strong>npm<\/strong>. Execute the following command to check that <strong>npm<\/strong> is installed and to create the configuration file:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>npm -v<\/div>\n<div>&nbsp;<\/div>\n<div><strong><em>Output<\/em><\/strong><\/div>\n<div>5.6.0<\/div>\n<\/div>\n<p>This will help some <strong>npm<\/strong> packages to work (for example, those that need compiling code from source), you have to install the <strong>build-essential<\/strong> package:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>sudo apt-get install build-essential<\/div>\n<\/div>\n<p>You now have the essential tools to work with npm packages that need compiling code from source.<\/p>\n<h2>How to Install Using NVM?<\/h2>\n<p>An option to installing Node.js by <strong>apt<\/strong> is to utilise particularly designed tool named <strong>nvm<\/strong> (<strong>Node.js Version Manager<\/strong>). Somewhat working at the level of operating system, <strong>nvm<\/strong> works at the independent directory level within your home directory. It means you can install multiple, independent versions of Node.js without affecting the whole system.<\/p>\n<p>Managing your environment with nvm permits you to access the most recent versions of Node.js and retain and manage previous releases. It&#8217;s a separate utility from apt-get, and therefore the versions of Node.js that you just manage by it are distinct from the distro-stable version of Node.js accessible from the Ubuntu repositories.<\/p>\n<p>To start off, we&#8217;ll require getting the software packages from our Ubuntu repositories which will permit us to create source packages. The nvm script can leverage these tools to create mandatory components:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>sudo apt-get update<\/div>\n<div>sudo apt-get install build-essential libssl-dev<\/div>\n<\/div>\n<p>You can pull down the nvm installation script from the <a href=\"https:\/\/github.com\/creationix\/nvm\" target=\"_blank\" rel=\"nofollow noopener\">project&#8217;s GitHub page<\/a> when the prerequisite packages are installed. The version can be different, but, usually, you&#8217;ll download it with <strong>curl<\/strong>:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>curl -sL https:\/\/raw.githubusercontent.com\/creationix\/nvm\/v0.33.8\/install.sh -o install_nvm.sh<\/div>\n<\/div>\n<p>And check the installation script with <strong>nano<\/strong>:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>nano install_nvm.sh<\/div>\n<\/div>\n<p>Run the script with <strong>bash<\/strong>:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>bash install_nvm.sh<\/div>\n<\/div>\n<p>It will install the software in the subdirectory of your home directory at <strong>~\/.nvm<\/strong> as well as added the important lines to your <strong>~\/.profile<\/strong> file to use the file.<\/p>\n<p>To get access to the nvm functionality, you have to log out and log in again, or you can source the <strong>~\/.profile<\/strong> file so that your current session is aware of regarding the changes:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>source ~\/.profile<\/div>\n<\/div>\n<p>Now you have nvm installed. Also, you can install remote Node.js versions.<\/p>\n<p>You can run the following command to find out the versions of Node.js that are available for installation:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>nvm ls-remote<\/div>\n<\/div>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div><em><strong>Output<\/strong><\/em><br \/>\n&#8230;<\/div>\n<\/div>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div style=\"padding-left: 30px;\">8.5.0<br \/>\nv8.6.0<br \/>\nv8.7.0<br \/>\nv8.8.0<br \/>\nv8.8.1<br \/>\nv8.9.0<br \/>\nv8.9.1<br \/>\nv8.9.2<br \/>\nv8.9.3<br \/>\n-&gt;v8.9.4 (Latest LTS: Carbon)<\/div>\n<\/div>\n<p>You can see, the recent LTS version at the time of this writing is v8.9.4. You can install the latest version by typing:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>nvm install 8.9.4<\/div>\n<\/div>\n<p>Generally, nvm will change to use the most newly installed version. You can clearly tell nvm to use the version we just downloaded by typing:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>nvm use 8.9.4<\/div>\n<\/div>\n<p>While you install Node.js using nvm, the executable is named <strong>node<\/strong>. You can see the version used by the shell at present, type:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>node -v<\/div>\n<div>&nbsp;<\/div>\n<div><strong><em>Output<\/em><\/strong><\/div>\n<div>v8.9.4<\/div>\n<\/div>\n<p>If you have manifold Node.js versions, you can get what is installed by typing:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>nvm ls<\/div>\n<\/div>\n<p>If you want to default one of the versions, type:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>nvm alias default 8.9.4<\/div>\n<\/div>\n<p>This version will be automatically selected while a new session is created. You can also refer to it by the alias like this:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>nvm use default<\/div>\n<\/div>\n<p>Each version of Node.js could keep a track of its individual packages and has <strong>npm<\/strong> ready to manage these.<\/p>\n<p>By using the normal format, you can have <strong>npm<\/strong> install packages to the Node.js project\u2019s . \/<strong>node_modules<\/strong> directory. E.g., for the <strong>express<\/strong> module:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>npm install <span style=\"color: #ff0000;\">express<\/span><\/div>\n<\/div>\n<p>You can add the <strong>-g<\/strong> flag if you wish to install it globally. Also, you can make it accessible to other projects by using the same Node.js version.<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>npm install -g <span style=\"color: #ff0000;\">express<\/span><\/div>\n<\/div>\n<p>This will install the package in:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>~\/.nvm\/<span style=\"color: #ff0000;\">node_version<\/span>\/lib\/node_modules\/<span style=\"color: #ff0000;\">package_name<\/span><\/div>\n<\/div>\n<p>Installing globally will allow you to run the commands from the command line, but you will have to link the package into your local sphere to need it from within a program:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>npm link <span style=\"color: #ff0000;\">express<\/span><\/div>\n<\/div>\n<p>Type the following line to get more help about the options available to you with nvm.<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>nvm help<\/div>\n<\/div>\n<h2>&nbsp;<\/h2>\n<h2>Removing Node.js<\/h2>\n<p>You can uninstall Node.js using apt-get or nvm, depending on the version you need to target. You have to work with the apt-get service at the system level to remove the distro-stable version.<\/p>\n<p>Execute the following command to remove the distro-stable version:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>sudo apt-get remove nodejs<\/div>\n<\/div>\n<p>This command will remove the package and hold the configuration files. These can be of use to you if you think to repeat the installation of the package at a later point. If you don\u2019t require saving the configuration files for later use, then run the following:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>sudo apt-get purge nodejs<\/div>\n<\/div>\n<p>This will uninstall the package and remove the configuration files linked with it.<br \/>\nAt last step, you can remove any unused packages that were automatically installed with the removed package:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>sudo apt-get autoremove<\/div>\n<\/div>\n<p>To uninstall a version of Node.js that you have enabled using nvm, first decide whether or not the version you&#8217;d wish to remove is the current active version:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>nvm current<\/div>\n<\/div>\n<p>If you are target version is <strong>not<\/strong> the current active version, you can execute:<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>nvm uninstall <span style=\"color: #ff0000;\">node_version<\/span><\/div>\n<\/div>\n<p>This command will uninstall the version of Node.js which you have selected.<\/p>\n<p>If you want to remove the version which is the current active version, you should deactivate <strong>nvm<\/strong> first to enable your changes.<\/p>\n<div style=\"background: #f2f2f2; padding: 15px;\">\n<div>nvm deactivate<\/div>\n<\/div>\n<p>Using the above command, you can now uninstall the current version. This version will remove all files linked with the targeted version of Node.js excluding the cached files that can be used for reinstallation.<\/p>\n<h3>Conclusion<\/h3>\n<p>As you&#8217;ll see, these are the few ways to get Node.js up and running on your Ubuntu 16.04. Depending on your circumstances, you will know which one is the best way for you. Whereas the prepackaged version in Ubuntu&#8217;s repository is the simplest, the <strong>nvm<\/strong> method is clearly rather more versatile.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Node.js is the server-side JavaScript runtime platform that performs JS code outside of the browser. Also, it is the open-source platform for JavaScript programming that allows developers to create server-side tools and applications. In this guide, we&#8217;ll show you about installing Node.js on an Ubuntu 16.04 server. Prerequisites This guide presumes that you are [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":7385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41,4],"tags":[577,678],"class_list":["post-7384","post","type-post","status-publish","format-standard","has-post-thumbnail","placeholder-for-hentry","category-howtos","category-web-hosting-faq","tag-node-js","tag-ubuntu-16-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Node.js on Ubuntu 16.04 - MilesWeb<\/title>\n<meta name=\"description\" content=\"In this guide, we&#039;ll show you about installing Node.js on an Ubuntu 16.04 server.\" \/>\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.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Node.js on Ubuntu 16.04 - MilesWeb\" \/>\n<meta property=\"og:description\" content=\"In this guide, we&#039;ll show you about installing Node.js on an Ubuntu 16.04 server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-12T10:38:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-15T07:16:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/06\/How-to-Install-Node-js-on-Ubuntu-16.04.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"445\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ajit\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ajit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/\"},\"author\":{\"name\":\"Ajit\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7cd39cafedd7652b49b849e5e331cd48\"},\"headline\":\"How to Install Node.js on Ubuntu 16.04\",\"datePublished\":\"2019-06-12T10:38:46+00:00\",\"dateModified\":\"2023-02-15T07:16:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/\"},\"wordCount\":1616,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/06\/How-to-Install-Node-js-on-Ubuntu-16.04.png\",\"keywords\":[\"node js\",\"Ubuntu 16.04\"],\"articleSection\":[\"How-Tos\",\"Web Hosting FAQ\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/\",\"name\":\"How to Install Node.js on Ubuntu 16.04 - MilesWeb\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/06\/How-to-Install-Node-js-on-Ubuntu-16.04.png\",\"datePublished\":\"2019-06-12T10:38:46+00:00\",\"dateModified\":\"2023-02-15T07:16:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7cd39cafedd7652b49b849e5e331cd48\"},\"description\":\"In this guide, we'll show you about installing Node.js on an Ubuntu 16.04 server.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/#primaryimage\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/06\/How-to-Install-Node-js-on-Ubuntu-16.04.png\",\"contentUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/06\/How-to-Install-Node-js-on-Ubuntu-16.04.png\",\"width\":800,\"height\":445,\"caption\":\"How to Install Node js on Ubuntu 16.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Node.js on Ubuntu 16.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7cd39cafedd7652b49b849e5e331cd48\",\"name\":\"Ajit\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6d48014b3dcf0691486425b0f8443591d31e1e2f623206cd11a25fdffa417819?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6d48014b3dcf0691486425b0f8443591d31e1e2f623206cd11a25fdffa417819?s=96&d=blank&r=g\",\"caption\":\"Ajit\"},\"description\":\"With over 8+ years of experience in the digital marketing industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/ajit\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Node.js on Ubuntu 16.04 - MilesWeb","description":"In this guide, we'll show you about installing Node.js on an Ubuntu 16.04 server.","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.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Node.js on Ubuntu 16.04 - MilesWeb","og_description":"In this guide, we'll show you about installing Node.js on an Ubuntu 16.04 server.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2019-06-12T10:38:46+00:00","article_modified_time":"2023-02-15T07:16:48+00:00","og_image":[{"width":800,"height":445,"url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/06\/How-to-Install-Node-js-on-Ubuntu-16.04.png","type":"image\/png"}],"author":"Ajit","twitter_misc":{"Written by":"Ajit","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/"},"author":{"name":"Ajit","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7cd39cafedd7652b49b849e5e331cd48"},"headline":"How to Install Node.js on Ubuntu 16.04","datePublished":"2019-06-12T10:38:46+00:00","dateModified":"2023-02-15T07:16:48+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/"},"wordCount":1616,"commentCount":0,"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/06\/How-to-Install-Node-js-on-Ubuntu-16.04.png","keywords":["node js","Ubuntu 16.04"],"articleSection":["How-Tos","Web Hosting FAQ"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/","name":"How to Install Node.js on Ubuntu 16.04 - MilesWeb","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/06\/How-to-Install-Node-js-on-Ubuntu-16.04.png","datePublished":"2019-06-12T10:38:46+00:00","dateModified":"2023-02-15T07:16:48+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7cd39cafedd7652b49b849e5e331cd48"},"description":"In this guide, we'll show you about installing Node.js on an Ubuntu 16.04 server.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/#primaryimage","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/06\/How-to-Install-Node-js-on-Ubuntu-16.04.png","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/06\/How-to-Install-Node-js-on-Ubuntu-16.04.png","width":800,"height":445,"caption":"How to Install Node js on Ubuntu 16.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Install Node.js on Ubuntu 16.04"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7cd39cafedd7652b49b849e5e331cd48","name":"Ajit","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6d48014b3dcf0691486425b0f8443591d31e1e2f623206cd11a25fdffa417819?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6d48014b3dcf0691486425b0f8443591d31e1e2f623206cd11a25fdffa417819?s=96&d=blank&r=g","caption":"Ajit"},"description":"With over 8+ years of experience in the digital marketing industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.","url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/ajit\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7384","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=7384"}],"version-history":[{"count":16,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7384\/revisions"}],"predecessor-version":[{"id":17520,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7384\/revisions\/17520"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media\/7385"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=7384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=7384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=7384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}