{"id":2086,"date":"2024-05-30T12:30:00","date_gmt":"2024-05-30T17:30:00","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=2086"},"modified":"2024-04-23T02:59:29","modified_gmt":"2024-04-23T07:59:29","slug":"how-to-install-node-js-and-npm-on-ubuntu-24-04","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/","title":{"rendered":"How to Install Node.js and NPM on Ubuntu 24.04"},"content":{"rendered":"\n<div id=\"linux-916967865\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p><a href=\"https:\/\/nodejs.org\/en\" target=\"_blank\" rel=\"noreferrer noopener\">NodeJS<\/a> is an open-source JavaScript runtime environment, one of the most popular tools among web developers. Developers typically use NodeJS to improve the functionality of web applications or create local development environments. This tutorial will guide you on how to install Node.JS and NPM on Ubuntu 24.04 using the default repository and NodeSource. You will also learn how to install a specific version of NodeJS using NVM.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An Ubuntu 24.04 VPS<\/li>\n\n\n\n<li>SSH root access or user with sudo privileges<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Conventions<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u2013 given commands should be executed with root privileges either directly as a root user or by use of sudo command\n$ \u2013 given commands should be executed as a regular user<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1. Login to the server<\/h2>\n\n\n\n<p>First, log in to your Ubuntu 24.04 server through SSH as the root user:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh master@IP_Address -p Port_number<\/pre>\n\n\n\n<p>You must replace \u2018IP_Address\u2018 and \u2018Port_number\u2018 with your server\u2019s IP address and SSH port number. Additionally, replace \u2018master\u2019 with the username of the system user with sudo privileges.<\/p>\n\n\n\n<p>You can check whether you have the proper Ubuntu version installed on your server with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ lsb_release -a<\/pre>\n\n\n\n<p>You should get this output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">No LSB modules are available.<br>Distributor ID: Ubuntu<br>Description: Ubuntu Noble Numbat<br>Release: 24.04<br>Codename: noble<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2. Install Dependencies<\/h2>\n\n\n\n<p>To install NodeJS on our system, we need to install some dependencies. Let&#8217;s run the command below to install them.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt install curl apt-transport-https ca-certificates gnupg<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3. Install NodeJS and NPM from APT<\/h2>\n\n\n\n<p>The easiest way to install NodeJS and NPM on an Ubuntu 24.04 system is from the default APT repository. You will get NodeJS version 18 and NPM version 9 using this installation method. The installation is simple and straightforward. Let&#8217;s execute the command below to install NodeJS and NPM.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt install nodejs npm -y<\/pre>\n\n\n\n<p>Once installed, you can run this command to check the version.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ nodejs -v; npm -v<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">master@ubuntu24:~$ nodejs -v; npm -v\nv18.19.1\n9.2.0<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4. Install NodeJS and NPM from NodeSource<\/h2>\n\n\n\n<p>We can install NodeJS from the Ubuntu default repository, but we will get an older version of NodeJS if we use this method. Alternatively, we will install NodeJS and npm through NodeJS repository to get the more recent version of it. If compared to Ubuntu&#8217;s default repository, NodeSource offer more versions to choose.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ curl -sL https:\/\/deb.nodesource.com\/setup_lts.x | sudo -E bash -<\/pre>\n\n\n\n<p>Once completed, we must download the package information from the newly added source above.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt update<\/pre>\n\n\n\n<p>Next, run the following command to install NodeJS and NPM.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt install nodejs<\/pre>\n\n\n\n<p>That&#8217;s it. NodeJS and NPM are installed. You can check the installed version by executing this one-liner:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ node -v; npm -v<\/pre>\n\n\n\n<p>Now go to https:\/\/nodejs.org\/en\/download\/ and see what is the LTS version. You have just installed the same version as shown there, and you will see an output like this after running the command above:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">master@ubuntu24:~$ node -v; npm -v\nv20.11.1\n10.2.4<\/pre>\n\n\n\n<p>Again, this installation method is suitable if you want to get the LTS or a specific version. For example, if you want version 18, you can execute this command instead.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ curl -fsSL https:\/\/deb.nodesource.com\/setup_18.x | sudo -E bash -<\/pre>\n\n\n\n<p>Replace 18 with any version you want if you want another version.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5. Install NodeJS and NPM using NVM<\/h2>\n\n\n\n<p>Another way to install NodeJS on Ubuntu is by using the Node Version Manager (NVM). NVM is a bash script used to manage several versions of NodeJS on your system. This installation method allows you to install and maintain different independent versions of NodeJS simultaneously.<\/p>\n\n\n\n<p>Run this command below to download the script.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ curl -o- https:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.39.7\/install.sh | bash<\/pre>\n\n\n\n<p>Then, we need to source the script.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ source ~\/.bashrc<\/pre>\n\n\n\n<p>After executing the command, you can list the available version of NodeJS to install with this command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ nvm list-remote<\/pre>\n\n\n\n<p>The command will return a message containing a long list of NodeJS version to choose.<\/p>\n\n\n\n<p>To install version 20.11.1, run this command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ nvm install 20.11.1<\/pre>\n\n\n\n<p>As explained earlier, you can have multiple version of NodeJS, you can install another version using the same command with the different version in the command.<\/p>\n\n\n\n<p>To switch between the installed version, you can run this command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ nvm use 18.19.1<\/pre>\n\n\n\n<p>Replace 18.19.1 with the version you want to switch to. Make sure the version is already installed.<\/p>\n\n\n\n<p>Congratulation! You have successfully learned how to install Node.JS and NPM on your Ubuntu 24.04 VPS. For more information about NodeJS and NPM, please refer to the NodeJS website.<\/p>\n\n\n\n<p>If you are still unsure, you don\u2019t have to install NodeJS and NPM On Ubuntu 24.04 yourself. Our Linux admins will set up and configure a NodeJS and NPM VPS for you on our <a href=\"https:\/\/linuxhostsupport.com\/monthly-server-management.html\" target=\"_blank\" rel=\"noreferrer noopener\">monthly management plans<\/a> or <a href=\"https:\/\/linuxhostsupport.com\/per-incident-support.html\" target=\"_blank\" rel=\"noreferrer noopener\">per incident server support plans<\/a>.<\/p>\n\n\n\n<p>PS. If you liked this post on how to install NodeJS and NPM On Ubuntu 24.04, please share it with your friends on social networks using the buttons on the left or leave a reply below. Thanks.<\/p><div id=\"linux-1952836688\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>NodeJS is an open-source JavaScript runtime environment, one of the most popular tools among web developers. Developers typically use NodeJS to improve the functionality of web applications or create local development environments. This tutorial will guide you on how to install Node.JS and NPM on Ubuntu 24.04 using the default repository and NodeSource. You will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2110,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,182],"tags":[199,45,273,274,20,275],"class_list":["post-2086","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","tag-how-to-install","tag-linux","tag-node-js","tag-npm","tag-ubuntu","tag-ubuntu24-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Node.js and NPM on Ubuntu 24.04 | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"Learn how to install Node.js and NPM on Ubuntu 24.04 using our easy to follow step-by-step guide or have our admins do it for you.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-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 and NPM on Ubuntu 24.04 | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"Learn how to install Node.js and NPM on Ubuntu 24.04 using our easy to follow step-by-step guide or have our admins do it for you.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-30T17:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/05\/how-to-install-node-js-and-npm-on-ubuntu-24-04.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Install Node.js and NPM on Ubuntu 24.04\",\"datePublished\":\"2024-05-30T17:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/\"},\"wordCount\":697,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/05\/how-to-install-node-js-and-npm-on-ubuntu-24-04.webp\",\"keywords\":[\"how to install\",\"linux\",\"node.js\",\"NPM\",\"ubuntu\",\"Ubuntu24.04\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/\",\"name\":\"How to Install Node.js and NPM on Ubuntu 24.04 | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/05\/how-to-install-node-js-and-npm-on-ubuntu-24-04.webp\",\"datePublished\":\"2024-05-30T17:30:00+00:00\",\"author\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"Learn how to install Node.js and NPM on Ubuntu 24.04 using our easy to follow step-by-step guide or have our admins do it for you.\",\"breadcrumb\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/#primaryimage\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/05\/how-to-install-node-js-and-npm-on-ubuntu-24-04.webp\",\"contentUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/05\/how-to-install-node-js-and-npm-on-ubuntu-24-04.webp\",\"width\":742,\"height\":410,\"caption\":\"How to install Node.js and NPM on Ubuntu 24.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/linuxhostsupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Node.js and NPM on Ubuntu 24.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#website\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Node.js and NPM on Ubuntu 24.04 | LinuxHostSupport","description":"Learn how to install Node.js and NPM on Ubuntu 24.04 using our easy to follow step-by-step guide or have our admins do it for you.","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:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Node.js and NPM on Ubuntu 24.04 | LinuxHostSupport","og_description":"Learn how to install Node.js and NPM on Ubuntu 24.04 using our easy to follow step-by-step guide or have our admins do it for you.","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2024-05-30T17:30:00+00:00","og_image":[{"width":742,"height":410,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/05\/how-to-install-node-js-and-npm-on-ubuntu-24-04.webp","type":"image\/webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Install Node.js and NPM on Ubuntu 24.04","datePublished":"2024-05-30T17:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/"},"wordCount":697,"commentCount":0,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/05\/how-to-install-node-js-and-npm-on-ubuntu-24-04.webp","keywords":["how to install","linux","node.js","NPM","ubuntu","Ubuntu24.04"],"articleSection":["Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/","name":"How to Install Node.js and NPM on Ubuntu 24.04 | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/05\/how-to-install-node-js-and-npm-on-ubuntu-24-04.webp","datePublished":"2024-05-30T17:30:00+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"Learn how to install Node.js and NPM on Ubuntu 24.04 using our easy to follow step-by-step guide or have our admins do it for you.","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/05\/how-to-install-node-js-and-npm-on-ubuntu-24-04.webp","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2024\/05\/how-to-install-node-js-and-npm-on-ubuntu-24-04.webp","width":742,"height":410,"caption":"How to install Node.js and NPM on Ubuntu 24.04"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-node-js-and-npm-on-ubuntu-24-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Node.js and NPM on Ubuntu 24.04"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/2086","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=2086"}],"version-history":[{"count":2,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/2086\/revisions"}],"predecessor-version":[{"id":2100,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/2086\/revisions\/2100"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/2110"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=2086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=2086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=2086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}