{"id":23138,"date":"2023-11-20T07:16:09","date_gmt":"2023-11-20T07:16:09","guid":{"rendered":"https:\/\/linuxways.net\/?p=23138"},"modified":"2023-11-20T07:37:59","modified_gmt":"2023-11-20T07:37:59","slug":"update-nodejs-latest-version","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/linux-commands\/update-nodejs-latest-version\/","title":{"rendered":"How Can I Update my NodeJS to the Latest Version?"},"content":{"rendered":"<p>Node.js is a JavaScript framework that is used for server-side applications, which mainly includes running web applications outside the client\u2019s browser. Multiple factors make Node.js the best option for such applications, such as it has its lower execution time and better synchronization of code between the client and server. On Linux systems, Node.js can be used as the command line utility to use the npm package manager for the installation of different applications. So, it is necessary to keep the Node.js updated to have better performance, as the updates come with several fixes for bugs in the previous version.<\/p>\n<h2><strong>How Can I Update My Node.js to the Latest Version?<\/strong><\/h2>\n<p>Updating Node.js enhances the security and stability of the applications installed in the Linux system, the methods to update the Node.js are:<\/p>\n<ul>\n<li><a href=\"#post-23138-irj5jmknf48z\"><strong>Updating Node.js using Node Version Manager (nvm) <\/strong><\/a><\/li>\n<li><a href=\"#post-23138-i62gy67hgwb7\"><strong>Updating Node.js using Node Package Manager (npm) <\/strong><\/a><\/li>\n<li><a href=\"#post-23138-o54z6oip8hg4\"><strong>Updating Node.js using Binary Package<\/strong><\/a><\/li>\n<\/ul>\n<h2><a id=\"post-23138-irj5jmknf48z\"><\/a><strong>Method 1: Updating Node.js using Node Version Manager<\/strong><\/h2>\n<p>The node version manager is a utility that is primarily used to install, manage, and update Node.js. Moreover, this utility provides the privilege of installing multiple versions of Node which can be activated or switched to default versions. To update the Node.js using the node version manager, adhere to the following steps:<\/p>\n<h3><strong>Step 1: Update the Packages List<\/strong><\/h3>\n<p>It is always advisable to update the packages list of the default package manager of Linux so that further installation of packages is error-free:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt update<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"812\" height=\"289\" class=\"wp-image-23139\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-1.png 812w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-1-300x107.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-1-768x273.png 768w\" sizes=\"auto, (max-width: 812px) 100vw, 812px\" \/><\/strong><\/p>\n<h3><strong>Step 2: Install Node Version Manager<\/strong><\/h3>\n<p>The node can be installed via curl or wget command, so to install it through the curl command first install the curl and for that:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> curl<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"818\" height=\"446\" class=\"wp-image-23140\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-2.png 818w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-2-300x164.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-2-768x419.png 768w\" sizes=\"auto, (max-width: 818px) 100vw, 818px\" \/><\/strong><\/p>\n<p>Once the curl is installed now install the node version manager through:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"re5\">-o-<\/span> https:<span class=\"sy0\">\/\/<\/span>raw.githubusercontent.com<span class=\"sy0\">\/<\/span>nvm-sh<span class=\"sy0\">\/<\/span>nvm<span class=\"sy0\">\/<\/span>v0.38.0<span class=\"sy0\">\/<\/span>install.sh <span class=\"sy0\">|<\/span> <span class=\"kw2\">bash<\/span><\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"815\" height=\"415\" class=\"wp-image-23142\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-3.png 815w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-3-300x153.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-3-768x391.png 768w\" sizes=\"auto, (max-width: 815px) 100vw, 815px\" \/><\/strong><\/p>\n<h3><strong>Step 3: Update the Current Shell<\/strong><\/h3>\n<p>To refresh the current shell usually the bashrc file is executed using the source command so in that execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw3\">source<\/span> ~<span class=\"sy0\">\/<\/span>.bashrc<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"814\" height=\"169\" class=\"wp-image-23143\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-4.png 814w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-4-300x62.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-4-768x159.png 768w\" sizes=\"auto, (max-width: 814px) 100vw, 814px\" \/><\/strong><\/p>\n<p>To verify the installation of the version manager, check its version using:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">nvm <span class=\"re5\">--version<\/span><\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"817\" height=\"203\" class=\"wp-image-23144\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-5.png 817w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-5-300x75.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-5-768x191.png 768w\" sizes=\"auto, (max-width: 817px) 100vw, 817px\" \/><\/strong><\/p>\n<h3><strong>Step 4: Install the latest Node Version<\/strong><\/h3>\n<p>To update the node to the latest version first list all the available versions and then find the latest one so for listing the versions of the node execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">nvm ls-remote<\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"817\" height=\"257\" class=\"wp-image-23145\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-6.png 817w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-6-300x94.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-6-768x242.png 768w\" sizes=\"auto, (max-width: 817px) 100vw, 817px\" \/><\/strong><\/p>\n<p>Now scroll down the terminal and the latest version will be at the last in my case the latest version is 21.1.0 so install it using the below syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">nvm <span class=\"kw2\">install<\/span> <span class=\"sy0\">&lt;<\/span>version-number<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"814\" height=\"551\" class=\"wp-image-23146\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-7.png 814w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-7-300x203.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-7-768x520.png 768w\" sizes=\"auto, (max-width: 814px) 100vw, 814px\" \/><\/strong><\/p>\n<p>Now check the version installed by using the ls command, as it will verify the installation process:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">nvm <span class=\"kw2\">ls<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"432\" class=\"wp-image-23147\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-8.png 816w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-8-300x159.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-8-768x407.png 768w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><\/p>\n<p>If in case, you want to switch to any other version that is already installed and set as default then execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">nvm <span class=\"kw3\">alias<\/span> default <span class=\"sy0\">&lt;<\/span>version-number<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"819\" height=\"496\" class=\"wp-image-23148\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-9.png 819w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-9-300x182.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-9-768x465.png 768w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><\/strong><\/p>\n<p>If you just want to change the node version that is currently in use but wants to keep the default version unchanged, then, in that case, execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">nvm use <span class=\"sy0\">&lt;<\/span>version-number<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"817\" height=\"497\" class=\"wp-image-23149\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-10.png 817w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-10-300x182.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-10-768x467.png 768w\" sizes=\"auto, (max-width: 817px) 100vw, 817px\" \/><\/strong><\/p>\n<h2><a id=\"post-23138-i62gy67hgwb7\"><\/a><strong>Method 2: Updating Node.js using Node Package Manager<\/strong><\/h2>\n<p>Another way to update Node.js to its latest version is by using the Node Package Manager, which is the package manager for Node.js which is used in frontend JavaScript. So, to upgrade the Node.js to the latest version here are some steps for it:<\/p>\n<h3><strong>Step 1: Clean npm Cache <\/strong><\/h3>\n<p>To begin with the process of updating the Node.js first, clean the cache of the package manager as it will delete all the data in its cache folder:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">npm cache clean <span class=\"re5\">-f<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"187\" class=\"wp-image-23150\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-11.png 816w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-11-300x69.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-11-768x176.png 768w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><\/p>\n<p>If the npm is not installed then install the node package manager by using the Linux default package manager, and for that execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> npm <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"812\" height=\"304\" class=\"wp-image-23151\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-12.png 812w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-12-300x112.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-12-768x288.png 768w\" sizes=\"auto, (max-width: 812px) 100vw, 812px\" \/><\/p>\n<h3><strong>Step 2: Install the n Module Stable Node Version <\/strong><\/h3>\n<p>Now install the stable version of the n module to effectively manage the Node.js by executing:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> npm <span class=\"kw2\">install<\/span> <span class=\"re5\">-g<\/span> n<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"815\" height=\"110\" class=\"wp-image-23152\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-13.png 815w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-13-300x40.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-13-768x104.png 768w\" sizes=\"auto, (max-width: 815px) 100vw, 815px\" \/><\/p>\n<h3><strong>Step 3: Update the Node.js Version<\/strong><\/h3>\n<p>Once the n module is installed now install the stable version of the node by executing:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"re5\">-E<\/span> <span class=\"kw2\">env<\/span> <span class=\"st0\">&quot;PATH=<span class=\"es2\">$PATH<\/span>&quot;<\/span> n stable<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"234\" class=\"wp-image-23153\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-14.png 820w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-14-300x86.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-14-768x219.png 768w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/p>\n<p>To install the latest version, execute:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"re5\">-E<\/span> <span class=\"kw2\">env<\/span> <span class=\"st0\">&quot;PATH=<span class=\"es2\">$PATH<\/span>&quot;<\/span> n latest<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"178\" class=\"wp-image-23154\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-15.png 801w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-15-300x67.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-15-768x171.png 768w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/p>\n<p>To install the version of your choice, just place the respective version number in the command below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"re5\">-E<\/span> <span class=\"kw2\">env<\/span> <span class=\"st0\">&quot;PATH=<span class=\"es2\">$PATH<\/span>&quot;<\/span> n <span class=\"sy0\">&lt;<\/span>version-number<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"819\" height=\"229\" class=\"wp-image-23155\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-16.png 819w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-16-300x84.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-16-768x215.png 768w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><\/p>\n<h2><a id=\"post-23138-o54z6oip8hg4\"><\/a><strong>Method 3: Updating Node.js using Binary Packages<\/strong><\/h2>\n<p>If you want to install the latest version of Node.js and have removed the previously installed version, then download here are some steps for it:<\/p>\n<h3><strong>Step 1: Download the latest Node.js <\/strong><\/h3>\n<p>To download the latest version of Node.js, <a href=\"https:\/\/nodejs.org\/en\/download\/current\">go to its official website<\/a> and download it from the download section:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1009\" height=\"669\" class=\"wp-image-23156\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-17.png 1009w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-17-300x199.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-17-768x509.png 768w\" sizes=\"auto, (max-width: 1009px) 100vw, 1009px\" \/><\/p>\n<p>Or execute the below command to download it through the terminal:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">wget<\/span> https:<span class=\"sy0\">\/\/<\/span>nodejs.org<span class=\"sy0\">\/<\/span>dist<span class=\"sy0\">\/<\/span>v21.1.0<span class=\"sy0\">\/<\/span>node-v21.1.0-linux-x64.tar.xz<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"815\" height=\"410\" class=\"wp-image-23157\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-18.png 815w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-18-300x151.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-18-768x386.png 768w\" sizes=\"auto, (max-width: 815px) 100vw, 815px\" \/><\/p>\n<h3><strong>Step 2: Extract and install Node.js<\/strong><\/h3>\n<p>Once the file is downloaded, extract the file and install it by executing:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">tar<\/span> <span class=\"re5\">-C<\/span> <span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span><span class=\"kw3\">local<\/span> <span class=\"re5\">--strip-components<\/span> <span class=\"nu0\">1<\/span> <span class=\"re5\">-xJf<\/span> node-v21.1.0-linux-x64.tar.xz<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"225\" class=\"wp-image-23158\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-19.png 816w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-19-300x83.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-19-768x212.png 768w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><\/p>\n<p>For further verification just verify the version by executing:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">node <span class=\"re5\">--version<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"811\" height=\"221\" class=\"wp-image-23159\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-20.png 811w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-20-300x82.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/11\/word-image-23138-20-768x209.png 768w\" sizes=\"auto, (max-width: 811px) 100vw, 811px\" \/><\/p>\n<h2><strong>Conclusion <\/strong><\/h2>\n<p>To build scalable network applications, Node.js is normally used, which is a JavaScript runtime application. Node.js has compatibility with various platforms and provides rapid data streaming as it saves a lot of time while transferring and uploading files. Therefore, to ensure the proper function of Node.js it is necessary to keep it updated, to update Node.js on Linux there are three ways: by using NPM, by using nvm, and by using the binary packages.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>To update Node.js on Linux there are three ways: by using NPM, by using nvm, and by using the binary packages.<\/p>","protected":false},"author":110,"featured_media":23141,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1049],"tags":[],"class_list":["post-23138","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-commands"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/23138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=23138"}],"version-history":[{"count":1,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/23138\/revisions"}],"predecessor-version":[{"id":23160,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/23138\/revisions\/23160"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/23141"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=23138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=23138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=23138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}