{"id":42842,"date":"2022-10-19T12:30:06","date_gmt":"2022-10-19T17:30:06","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=42842"},"modified":"2023-03-21T06:37:46","modified_gmt":"2023-03-21T11:37:46","slug":"how-to-install-nodejs-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-nodejs-on-ubuntu-22-04\/","title":{"rendered":"How to Install Node.js on Ubuntu 22.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-43140\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/09\/how-to-install-node-js-on-ubuntu-22-04.webp\" alt=\"how to install nodejs on ubuntu\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/09\/how-to-install-node-js-on-ubuntu-22-04.webp 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/09\/how-to-install-node-js-on-ubuntu-22-04-300x150.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/09\/how-to-install-node-js-on-ubuntu-22-04-150x75.webp 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we are going to explain in step-by-step detail how to install and use Nodejs on Ubuntu 22.04 OS.<\/p>\n<p>Nodejs is an <a href=\"https:\/\/www.rosehosting.com\/blog\/best-open-source-hosting-control-panels\/\">open-source<\/a>, cross-platform back-end javascript runtime environment responsible for executing javascript code. Nodejs allows developers to use javascript for server-side scripting and to produce dynamic web pages. Nodejs is developed and maintained by the OpenJS Foundation and written in C, C++, and Javascript.<\/p>\n<p>In this blog post, we are going to explain the three different ways to install NodeJS on your Ubuntu 22.04. Let&#8217;s get started!<\/p>\n<p><!--more--><\/p>\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-69ed6d1b2214d\" 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-69ed6d1b2214d\"  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\/how-to-install-nodejs-on-ubuntu-22-04\/#Prerequisites\" >Prerequisites<\/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\/how-to-install-nodejs-on-ubuntu-22-04\/#Update-the-System\" >Update the System<\/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\/how-to-install-nodejs-on-ubuntu-22-04\/#Install-Nodejs-from-Default-Ubuntu-2204-Repository\" >Install Nodejs from Default Ubuntu 22.04 Repository<\/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\/how-to-install-nodejs-on-ubuntu-22-04\/#Install-Nodejs-using-APT-with-the-PPA-method\" >Install Nodejs using APT with the PPA method<\/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\/how-to-install-nodejs-on-ubuntu-22-04\/#Install-Nodejs-Using-the-Node-Version-Manager-NVM\" >Install Nodejs Using the Node Version Manager (NVM)<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>A server with Ubuntu 22.04 as OS<\/li>\n<li>User privileges: root or non-root user with sudo privileges<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Update-the-System\"><\/span>Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Fresh installation of Ubuntu 22.04 needs the packages to be updated to the latest versions available.<\/p>\n<pre>sudo apt-get update -y &amp;&amp; sudo apt-get upgrade -y<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Install-Nodejs-from-Default-Ubuntu-2204-Repository\"><\/span>Install Nodejs from Default Ubuntu 22.04 Repository<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>By default, the nodejs packets are added to the default repository of Ubuntu 22.04. This is the easiest and fastest way to install Nodejs.<\/p>\n<p>To install Nodejs from the default repo, execute the following command:<\/p>\n<pre>sudo apt install nodejs -y<\/pre>\n<p>After successful installation, you can check the Node version with the following command:<\/p>\n<pre>node -v<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>root@host:~# node -v\r\nv12.22.9<\/pre>\n<p>As you can see, the default version of Nodejs that can be installed by the default repository in Ubuntu 22.04 is version <b>v12.22.9<\/b><\/p>\n<p>This is not the latest version of Nodejs. So that is why in the next step, we are going to install the latest Nodejs version or a different version using the PPA (personal package archive) method.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Install-Nodejs-using-APT-with-the-PPA-method\"><\/span>Install Nodejs using APT with the PPA method<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In this paragraph, we are going to install Nodejs with the NodeSource repository. First, we need to add the repository with the following command:<\/p>\n<pre>curl -fsSL https:\/\/deb.nodesource.com\/setup_18.x | sudo -E bash -<\/pre>\n<p>Once added, you should receive the following output:<\/p>\n<pre>## Installing the NodeSource Node.js 18.x repo...\r\n\r\n\r\n## Populating apt-get cache...\r\n\r\n+ apt-get update\r\nHit:1 http:\/\/us.archive.ubuntu.com\/ubuntu jammy InRelease\r\nGet:2 http:\/\/security.ubuntu.com\/ubuntu jammy-security InRelease [110 kB]\r\nGet:3 http:\/\/us.archive.ubuntu.com\/ubuntu jammy-updates InRelease [114 kB]\r\nGet:4 http:\/\/us.archive.ubuntu.com\/ubuntu jammy-backports InRelease [99.8 kB]\r\nFetched 324 kB in 1s (351 kB\/s)\r\nReading package lists... Done\r\n\r\n## Confirming \"jammy\" is supported...\r\n\r\n+ curl -sLf -o \/dev\/null 'https:\/\/deb.nodesource.com\/node_18.x\/dists\/jammy\/Release'\r\n\r\n## Adding the NodeSource signing key to your keyring...\r\n\r\n+ curl -s https:\/\/deb.nodesource.com\/gpgkey\/nodesource.gpg.key | gpg --dearmor | tee \/usr\/share\/keyrings\/nodesource.gpg &gt;\/dev\/null\r\n\r\n## Creating apt sources list file for the NodeSource Node.js 18.x repo...\r\n\r\n+ echo 'deb [signed-by=\/usr\/share\/keyrings\/nodesource.gpg] https:\/\/deb.nodesource.com\/node_18.x jammy main' &gt; \/etc\/apt\/sources.list.d\/nodesource.list\r\n+ echo 'deb-src [signed-by=\/usr\/share\/keyrings\/nodesource.gpg] https:\/\/deb.nodesource.com\/node_18.x jammy main' &gt;&gt; \/etc\/apt\/sources.list.d\/nodesource.list\r\n\r\n## Running `apt-get update` for you...\r\n\r\n+ apt-get update\r\nHit:1 http:\/\/us.archive.ubuntu.com\/ubuntu jammy InRelease\r\nHit:2 http:\/\/security.ubuntu.com\/ubuntu jammy-security InRelease\r\nGet:3 https:\/\/deb.nodesource.com\/node_18.x jammy InRelease [4,563 B]\r\nHit:4 http:\/\/us.archive.ubuntu.com\/ubuntu jammy-updates InRelease\r\nHit:5 http:\/\/us.archive.ubuntu.com\/ubuntu jammy-backports InRelease\r\nGet:6 https:\/\/deb.nodesource.com\/node_18.x jammy\/main amd64 Packages [771 B]\r\nFetched 5,334 B in 1s (5,323 B\/s)\r\nReading package lists... Done\r\n\r\n## Run `sudo apt-get install -y nodejs` to install Node.js 18.x and npm\r\n## You may also need development tools to build native addons:\r\n     sudo apt-get install gcc g++ make\r\n## To install the Yarn package manager, run:\r\n     curl -sL https:\/\/dl.yarnpkg.com\/debian\/pubkey.gpg | gpg --dearmor | sudo tee \/usr\/share\/keyrings\/yarnkey.gpg &gt;\/dev\/null\r\n     echo \"deb [signed-by=\/usr\/share\/keyrings\/yarnkey.gpg] https:\/\/dl.yarnpkg.com\/debian stable main\" | sudo tee \/etc\/apt\/sources.list.d\/yarn.list\r\n     sudo apt-get update &amp;&amp; sudo apt-get install yarn\r\n\r\n<\/pre>\n<p>Update the system and execute the install command:<\/p>\n<pre>sudo apt-get update -y\r\n\r\nsudo apt-get install nodejs -y<\/pre>\n<p>Once installed, check the installed Nodejs version with the <b>node -v<\/b> command<\/p>\n<pre>root@host:~# node -v\r\nv18.7.0\r\n<\/pre>\n<p>As you can see, the latest installed version with NodeSource repo is version <b>v18.7.0<\/b>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Install-Nodejs-Using-the-Node-Version-Manager-NVM\"><\/span>Install Nodejs Using the Node Version Manager (NVM)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In this paragraph, first, we will install NVM, then we will install some Nodejs versions.<\/p>\n<p>First, add the repository with the following command:<\/p>\n<pre>curl -o- https:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.39.1\/install.sh | bash<\/pre>\n<p>Once the repo is added, we need to source to our <b>.bashrc<\/b> file.<\/p>\n<pre>source ~\/.bashrc<\/pre>\n<p>Now, you can check the version of the installed NVM with the following command:<\/p>\n<pre>nvm -v<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>root@host:~# nvm -v\r\n0.39.1<\/pre>\n<p>The next step is to list all available Nodejs versions with the NVM manager:<\/p>\n<pre>nvm list-remote<\/pre>\n<p>The list will be long, and the output should be similar to this:<\/p>\n<pre>       v16.16.0   (Latest LTS: Gallium)\r\n        v17.0.0\r\n        v17.0.1\r\n        v17.1.0\r\n        v17.2.0\r\n        v17.3.0\r\n        v17.3.1\r\n        v17.4.0\r\n        v17.5.0\r\n        v17.6.0\r\n        v17.7.0\r\n        v17.7.1\r\n        v17.7.2\r\n        v17.8.0\r\n        v17.9.0\r\n        v17.9.1\r\n        v18.0.0\r\n        v18.1.0\r\n        v18.2.0\r\n        v18.3.0\r\n        v18.4.0\r\n        v18.5.0\r\n        v18.6.0\r\n        v18.7.0\r\n<\/pre>\n<p>To install some specific versions execute the following command:<\/p>\n<pre>nvm install v17.9.0<\/pre>\n<p>After successful installation, you should receive the following output:<\/p>\n<pre>root@host:~# nvm install v17.9.0\r\nDownloading and installing node v17.9.0...\r\nDownloading https:\/\/nodejs.org\/dist\/v17.9.0\/node-v17.9.0-linux-x64.tar.xz...\r\n################################################################################################################################################################# 100.0%\r\nComputing checksum with sha256sum\r\nChecksums matched!\r\nNow using node v17.9.0 (npm v8.5.5)\r\nCreating default alias: default -&gt; v17.9.0<\/pre>\n<p>Congratulations! You successfully installed <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting\/\">Nodejs on Ubuntu 22.04<\/a> in three different ways.<\/p>\n<p>Of course, if you find it difficult to understand the way of installing Nodejs on Ubuntu 22.04, you can always contact our technical support and they will do the rest for you. We are available 24\/7.<\/p>\n<p>If you liked this post on how to install Nodejs on Ubuntu 22.04, please share it with your friends on social networks or simply leave a reply below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to explain in step-by-step detail how to install and use Nodejs on Ubuntu 22.04 &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Node.js on Ubuntu 22.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-nodejs-on-ubuntu-22-04\/#more-42842\" aria-label=\"Read more about How to Install Node.js on Ubuntu 22.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":43140,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1698],"tags":[1254,357],"class_list":["post-42842","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","tag-alegrocart-ubuntu","tag-node-js","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.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Node.js on Ubuntu 22.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"In this blog post, we are going to explain the three different ways to install NodeJS on your Ubuntu 22.04. Find out more!\" \/>\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\/how-to-install-nodejs-on-ubuntu-22-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 Nodejs on Ubuntu 22.04\" \/>\n<meta property=\"og:description\" content=\"In this blog post, we are going to explain the three different ways to install NodeJS on your Ubuntu 22.04. Find out more!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-nodejs-on-ubuntu-22-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=\"2022-10-19T17:30:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-21T11:37:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/09\/how-to-install-node-js-on-ubuntu-22-04.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Install Nodejs on Ubuntu 22.04\" \/>\n<meta name=\"twitter:description\" content=\"In this blog post, we are going to explain the three different ways to install NodeJS on your Ubuntu 22.04. Find out more!\" \/>\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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-nodejs-on-ubuntu-22-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-nodejs-on-ubuntu-22-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Node.js on Ubuntu 22.04\",\"datePublished\":\"2022-10-19T17:30:06+00:00\",\"dateModified\":\"2023-03-21T11:37:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-nodejs-on-ubuntu-22-04\\\/\"},\"wordCount\":501,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-nodejs-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/how-to-install-node-js-on-ubuntu-22-04.webp\",\"keywords\":[\"alegrocart ubuntu\",\"node.js\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-nodejs-on-ubuntu-22-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-nodejs-on-ubuntu-22-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-nodejs-on-ubuntu-22-04\\\/\",\"name\":\"How to Install Node.js on Ubuntu 22.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-nodejs-on-ubuntu-22-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-nodejs-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/how-to-install-node-js-on-ubuntu-22-04.webp\",\"datePublished\":\"2022-10-19T17:30:06+00:00\",\"dateModified\":\"2023-03-21T11:37:46+00:00\",\"description\":\"In this blog post, we are going to explain the three different ways to install NodeJS on your Ubuntu 22.04. Find out more!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-nodejs-on-ubuntu-22-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-nodejs-on-ubuntu-22-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-nodejs-on-ubuntu-22-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/how-to-install-node-js-on-ubuntu-22-04.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/how-to-install-node-js-on-ubuntu-22-04.webp\",\"width\":742,\"height\":372,\"caption\":\"how to install nodejs on ubuntu\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-nodejs-on-ubuntu-22-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Node.js on Ubuntu 22.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":"How to Install Node.js on Ubuntu 22.04 | RoseHosting","description":"In this blog post, we are going to explain the three different ways to install NodeJS on your Ubuntu 22.04. Find out more!","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\/how-to-install-nodejs-on-ubuntu-22-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Nodejs on Ubuntu 22.04","og_description":"In this blog post, we are going to explain the three different ways to install NodeJS on your Ubuntu 22.04. Find out more!","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-nodejs-on-ubuntu-22-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2022-10-19T17:30:06+00:00","article_modified_time":"2023-03-21T11:37:46+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/09\/how-to-install-node-js-on-ubuntu-22-04.webp","type":"image\/webp"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How to Install Nodejs on Ubuntu 22.04","twitter_description":"In this blog post, we are going to explain the three different ways to install NodeJS on your Ubuntu 22.04. Find out more!","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-nodejs-on-ubuntu-22-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-nodejs-on-ubuntu-22-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Node.js on Ubuntu 22.04","datePublished":"2022-10-19T17:30:06+00:00","dateModified":"2023-03-21T11:37:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-nodejs-on-ubuntu-22-04\/"},"wordCount":501,"commentCount":2,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-nodejs-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/09\/how-to-install-node-js-on-ubuntu-22-04.webp","keywords":["alegrocart ubuntu","node.js"],"articleSection":["Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-nodejs-on-ubuntu-22-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-nodejs-on-ubuntu-22-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-nodejs-on-ubuntu-22-04\/","name":"How to Install Node.js on Ubuntu 22.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-nodejs-on-ubuntu-22-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-nodejs-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/09\/how-to-install-node-js-on-ubuntu-22-04.webp","datePublished":"2022-10-19T17:30:06+00:00","dateModified":"2023-03-21T11:37:46+00:00","description":"In this blog post, we are going to explain the three different ways to install NodeJS on your Ubuntu 22.04. Find out more!","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-nodejs-on-ubuntu-22-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-nodejs-on-ubuntu-22-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-nodejs-on-ubuntu-22-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/09\/how-to-install-node-js-on-ubuntu-22-04.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/09\/how-to-install-node-js-on-ubuntu-22-04.webp","width":742,"height":372,"caption":"how to install nodejs on ubuntu"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-nodejs-on-ubuntu-22-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Node.js on Ubuntu 22.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\/42842","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=42842"}],"version-history":[{"count":7,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/42842\/revisions"}],"predecessor-version":[{"id":45198,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/42842\/revisions\/45198"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/43140"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=42842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=42842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=42842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}