{"id":20558,"date":"2016-12-28T07:39:02","date_gmt":"2016-12-28T13:39:02","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=20558"},"modified":"2022-12-16T04:03:30","modified_gmt":"2022-12-16T10:03:30","slug":"install-npm-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/","title":{"rendered":"Install npm on Ubuntu 16.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-28089\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/09\/Install-npm-on-Ubuntu-16.04.jpg\" alt=\"How to Install NPM on Ubuntu 16.04\" width=\"742\" height=\"371\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/09\/Install-npm-on-Ubuntu-16.04.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/09\/Install-npm-on-Ubuntu-16.04-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/09\/Install-npm-on-Ubuntu-16.04-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-28785\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/12\/installing-npm-on-ubuntu-16.04-1.jpg\" alt=\"installing npm on ubuntu 16.04\" width=\"120\" height=\"90\" \/>Today we gonna talk about <strong>how to install npm on Ubuntu 16.04<\/strong>. Npm is a JavaScript package manager which can be used to install, share, and distribute code as well as to manage dependencies in your projects. It is written entirely in JavaScript as an inspiration from the other similar projects like PEAR for PHP, or CPAN for Perl.<strong>\u00a0Installing npm on Ubuntu 16.04<\/strong> is an easy task,\u00a0 just follow the steps below and you should have <strong>npm running on Ubuntu 16.04<\/strong> in less than 10 minutes.<\/p>\n<h2><!--more--><\/h2>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f27546be430\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f27546be430\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/#1-Connect-via-SSH-and-Upgrade-your-System\" >1. Connect via SSH and Upgrade your System<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/#2-Install-Nodejs-Version-%E2%80%93-4x\" >2. Install Node.js Version &#8211; 4.x<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/#3-Install-Nodejs-Version-%E2%80%93-7x\" >3. Install Node.js Version &#8211; 7.x<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/#4-Verify-npm-Installation-on-your-Ubuntu-1604-server\" >4. Verify npm Installation on your Ubuntu 16.04 server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/#5-Check-the-npm-Help-Documentation\" >5. Check the npm Help Documentation<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"1-Connect-via-SSH-and-Upgrade-your-System\"><\/span>1. Connect via SSH and Upgrade your System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The very first thing you need to do, before installing npm is to <a href=\"https:\/\/www.rosehosting.com\/blog\/connect-to-your-linux-vps-via-ssh\/\">connect to your Linux VPS via SSH<\/a> and upgrade your system software to the latest version available. You can do that by executing the following command:<\/p>\n<pre>sudo apt-get update &amp;&amp; sudo apt-get -y upgrade<\/pre>\n<p>The upgrade process could take anywhere from a few seconds to a few minutes, depending on the software that needs to be upgraded. Once your system is up to date, you can proceed with the other steps of this tutorial.<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-28786 alignright\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/12\/npm-install-ubuntu.jpg\" alt=\"npm install ubuntu\" width=\"120\" height=\"99\" \/>Next, we&#8217;ll need to install Node.js. The <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-node-js-on-ubuntu-16-04\/\">installation of Node.js on Ubuntu 16.04<\/a> can be done using several different methods:<\/p>\n<ul>\n<li>APT: the default Ubuntu package manager<\/li>\n<li>PPA: Personal Package Manager<\/li>\n<li>NVM: Node Version Manager<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"2-Install-Nodejs-Version-%E2%80%93-4x\"><\/span>2. Install Node.js Version &#8211; 4.x<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>npm is bundled with Node.js, so to install npm you only need to install Node.js on your Ubuntu VPS. To install Node.js 4.x LTS on Ubuntu 16.04, run the following commands:<\/p>\n<pre>curl -sL https:\/\/deb.nodesource.com\/setup_4.x | sudo -E bash -\r\nsudo apt-get install -y nodejs<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"3-Install-Nodejs-Version-%E2%80%93-7x\"><\/span>3. Install Node.js Version &#8211; 7.x<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Alternatively, to <strong>install Node.js 7.x on Ubuntu 16.04<\/strong>, which is the current version of Node.js, run the commands below:<\/p>\n<pre>curl -sL https:\/\/deb.nodesource.com\/setup_7.x | sudo -E bash -\r\nsudo apt-get install -y nodejs<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"4-Verify-npm-Installation-on-your-Ubuntu-1604-server\"><\/span>4. Verify npm Installation on your Ubuntu 16.04 server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To verify that the installation of npm\u00a0on Ubuntu 16.04 is successful,\u00a0 check the npm version with the following command:<\/p>\n<pre>npm -v<\/pre>\n<p>The output should be similar to the one below:<\/p>\n<pre># npm -v\r\n4.2.0<\/pre>\n<h2><img decoding=\"async\" class=\"aligncenter size-full wp-image-28090\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/09\/how-to-install-npm-on-ubuntu-16.04.jpg\" alt=\"how to install npm on ubuntu 16.04\" width=\"320\" height=\"253\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/09\/how-to-install-npm-on-ubuntu-16.04.jpg 320w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/09\/how-to-install-npm-on-ubuntu-16.04-150x119.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/09\/how-to-install-npm-on-ubuntu-16.04-300x237.jpg 300w\" sizes=\"(max-width: 320px) 100vw, 320px\" \/><\/h2>\n<h2><span class=\"ez-toc-section\" id=\"5-Check-the-npm-Help-Documentation\"><\/span>5. Check the npm Help Documentation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A good way to start using npm is to read the npm help page or the npm documentation. To check the npm help page, enter the following command:<\/p>\n<pre>npm help<\/pre>\n<p>Here is the npm help page:<\/p>\n<pre># npm help\r\n\r\nUsage: npm &lt;command&gt;\r\n\r\nwhere &lt;command&gt; is one of:\r\n    access, add-user, adduser, apihelp, author, bin, bugs, c,\r\n    cache, completion, config, ddp, dedupe, deprecate, dist-tag,\r\n    dist-tags, docs, edit, explore, faq, find, find-dupes, get,\r\n    help, help-search, home, i, info, init, install, issues, la,\r\n    link, list, ll, ln, login, logout, ls, outdated, owner,\r\n    pack, ping, prefix, prune, publish, r, rb, rebuild, remove,\r\n    repo, restart, rm, root, run-script, s, se, search, set,\r\n    show, shrinkwrap, star, stars, start, stop, t, tag, team,\r\n    test, tst, un, uninstall, unlink, unpublish, unstar, up,\r\n    update, upgrade, v, version, view, whoami\r\n\r\nnpm  -h     quick help on \r\nnpm -l           display full usage info\r\nnpm faq          commonly asked questions\r\nnpm help   search for help on \r\nnpm help npm     involved overview\r\n\r\nSpecify configs in the ini-formatted file:\r\n    \/root\/.npmrc\r\nor on the command line via: npm &lt;command&gt; --key value\r\nConfig info can be viewed via: npm help config\r\n\r\nnpm@4.2.0 \/usr\/lib\/node_modules\/npm &lt;command&gt;<\/pre>\n<p>Using the commands &#8220;npm -l&#8221; and &#8220;npm faq&#8221; will give most new users the basic knowledge they need to start using npm. And that&#8217;s all that&#8217;s needed for installation &#8211; you have now successfully installed npm on Ubuntu 16.04. The npm documentation is available at <a href=\"https:\/\/docs.npmjs.com\/\">https:\/\/docs.npmjs.com\/<\/a>.<\/p>\n<p>Follow this tutorial on installing <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-20-04\/\">Node.js and npm on Ubuntu 20.04<\/a><\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-27834\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/12\/how-to-install-npm-on-ubuntu-16.04.jpg\" alt=\"how to install npm on ubuntu 16.04\" width=\"250\" height=\"97\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/12\/how-to-install-npm-on-ubuntu-16.04.jpg 250w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/12\/how-to-install-npm-on-ubuntu-16.04-150x58.jpg 150w\" sizes=\"(max-width: 250px) 100vw, 250px\" \/><\/p>\n<p>Of course, you don\u2019t have to know <strong>how to install npm on Ubuntu 16.04<\/strong> if you use one of our\u00a0<a href=\"https:\/\/www.rosehosting.com\/java-hosting.html\">Optimized Java VPS Hosting<\/a>\u00a0services, in which case you can simply ask our expert Linux admins to install npm on for you. They are available 24\u00d77 and will take care of installing\u00a0npm onto your server.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS.<\/strong><\/span> If you liked this post on installing npm on Ubuntu 16.04,\u00a0 please share it with your friends on the social networks using the buttons below, or simply leave a comment. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we gonna talk about how to install npm on Ubuntu 16.04. Npm is a JavaScript package manager which can &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Install npm on Ubuntu 16.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/#more-20558\" aria-label=\"Read more about Install npm on Ubuntu 16.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":28089,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1698,1712],"tags":[297,172,357,416,59],"class_list":["post-20558","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","category-web-frameworks","tag-how-to","tag-install","tag-node-js","tag-npm","tag-ubuntu","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Install npm on Ubuntu 16.04<\/title>\n<meta name=\"description\" content=\"Installing npm on Ubuntu 16.04, is an easy task, just follow the steps bellow and you should have successfully installed npm on a Ubuntu 16.04 VPS 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.rosehosting.com\/blog\/install-npm-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=\"Install npm on Ubuntu 16.04\" \/>\n<meta property=\"og:description\" content=\"Install npm on Ubuntu 16.04 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2016-12-28T13:39:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-16T10:03:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/09\/Install-npm-on-Ubuntu-16.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"371\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-npm-on-ubuntu-16-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-npm-on-ubuntu-16-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"Install npm on Ubuntu 16.04\",\"datePublished\":\"2016-12-28T13:39:02+00:00\",\"dateModified\":\"2022-12-16T10:03:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-npm-on-ubuntu-16-04\\\/\"},\"wordCount\":495,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-npm-on-ubuntu-16-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/Install-npm-on-Ubuntu-16.04.jpg\",\"keywords\":[\"how-to\",\"install\",\"node.js\",\"npm\",\"ubuntu\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\",\"Web Frameworks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-npm-on-ubuntu-16-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-npm-on-ubuntu-16-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-npm-on-ubuntu-16-04\\\/\",\"name\":\"Install npm on Ubuntu 16.04\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-npm-on-ubuntu-16-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-npm-on-ubuntu-16-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/Install-npm-on-Ubuntu-16.04.jpg\",\"datePublished\":\"2016-12-28T13:39:02+00:00\",\"dateModified\":\"2022-12-16T10:03:30+00:00\",\"description\":\"Installing npm on Ubuntu 16.04, is an easy task, just follow the steps bellow and you should have successfully installed npm on a Ubuntu 16.04 VPS Server.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-npm-on-ubuntu-16-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-npm-on-ubuntu-16-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-npm-on-ubuntu-16-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/Install-npm-on-Ubuntu-16.04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/09\\\/Install-npm-on-Ubuntu-16.04.jpg\",\"width\":742,\"height\":371,\"caption\":\"How to Install NPM on Ubuntu 16.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/install-npm-on-ubuntu-16-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install npm on Ubuntu 16.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Install npm on Ubuntu 16.04","description":"Installing npm on Ubuntu 16.04, is an easy task, just follow the steps bellow and you should have successfully installed npm on a Ubuntu 16.04 VPS 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.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/","og_locale":"en_US","og_type":"article","og_title":"Install npm on Ubuntu 16.04","og_description":"Install npm on Ubuntu 16.04 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2016-12-28T13:39:02+00:00","article_modified_time":"2022-12-16T10:03:30+00:00","og_image":[{"width":742,"height":371,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/09\/Install-npm-on-Ubuntu-16.04.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"Install npm on Ubuntu 16.04","datePublished":"2016-12-28T13:39:02+00:00","dateModified":"2022-12-16T10:03:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/"},"wordCount":495,"commentCount":4,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/09\/Install-npm-on-Ubuntu-16.04.jpg","keywords":["how-to","install","node.js","npm","ubuntu"],"articleSection":["Tutorials","Ubuntu","Web Frameworks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/","url":"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/","name":"Install npm on Ubuntu 16.04","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/09\/Install-npm-on-Ubuntu-16.04.jpg","datePublished":"2016-12-28T13:39:02+00:00","dateModified":"2022-12-16T10:03:30+00:00","description":"Installing npm on Ubuntu 16.04, is an easy task, just follow the steps bellow and you should have successfully installed npm on a Ubuntu 16.04 VPS Server.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/09\/Install-npm-on-Ubuntu-16.04.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/09\/Install-npm-on-Ubuntu-16.04.jpg","width":742,"height":371,"caption":"How to Install NPM on Ubuntu 16.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/install-npm-on-ubuntu-16-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Install npm on Ubuntu 16.04"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/20558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=20558"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/20558\/revisions"}],"predecessor-version":[{"id":44335,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/20558\/revisions\/44335"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/28089"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=20558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=20558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=20558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}