{"id":63256,"date":"2021-12-02T08:17:11","date_gmt":"2021-12-02T14:17:11","guid":{"rendered":"https:\/\/www.scalahosting.com\/blog\/?p=63256"},"modified":"2026-01-21T07:10:07","modified_gmt":"2026-01-21T13:10:07","slug":"installing-node-js-on-a-vps-server-2","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/blog\/installing-node-js-on-a-vps-server-2\/","title":{"rendered":"Installing Node.js on a VPS Server"},"content":{"rendered":"\n<p>Node.js is an open-source platform that helps JavaScript users execute their code outside a web browser. It is a free solution that runs well on almost any operating system. In terms of hosting,<strong> <\/strong><a href=\"https:\/\/www.scalahosting.com\/managed-cloud-hosting.html\"><strong>VPS servers<\/strong><\/a> provide a perfect environment to<strong> integrate Node.js apps<\/strong> with developer tools and APIs.<\/p>\n\n\n\n<p>Let&#8217;s see what you need to do to use Node.js on both managed and self-managed VPS servers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what\"><strong>What is Node.js?<\/strong><\/h2>\n\n\n\n<p>Node.js is a <strong>cross-platform, event-driven<\/strong> JavaScript runtime environment. It is built on Chrome&#8217;s V8 JavaScript engine alongside other development frameworks like <strong>MongoDB, Express.js, and AngularJS.<\/strong> Node.js lets you use JavaScript to create web servers, networking tools, and modules responsible for a number of core functions.<\/p>\n\n\n\n<p>Because Node.js works with JavaScript only, it&#8217;s <strong>more accessible<\/strong> to a broad community of developers. At the same time, the APIs its modules use <strong>simplify the process<\/strong> of writing server applications.<\/p>\n\n\n\n<p>Although you can run your NodeJS apps without it, experts recommend installing <strong>npm<\/strong> \u2013 Node.js&#8217;s official package manager. It consists of a client and an online database (the npm registry) of <strong>over 1 million free and paid-for packages<\/strong>. Thanks to npm, developers from all over the world can tap into an enormous pool of ready-made resources that help them speed up the development process.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/joan-gamell-XmZ4GDAp9G0-unsplash-scaled.jpg\"><img decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/joan-gamell-XmZ4GDAp9G0-unsplash-1024x683.jpg\" alt=\"Installing Node.js on a VPS Server, What is Node.js?\" class=\"wp-image-63258\" srcset=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/joan-gamell-XmZ4GDAp9G0-unsplash-1024x683.jpg 1024w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/joan-gamell-XmZ4GDAp9G0-unsplash-300x200.jpg 300w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/joan-gamell-XmZ4GDAp9G0-unsplash-768x512.jpg 768w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/joan-gamell-XmZ4GDAp9G0-unsplash-1536x1024.jpg 1536w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/joan-gamell-XmZ4GDAp9G0-unsplash-2048x1365.jpg 2048w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"why\"><strong>Why Node.js?<\/strong><\/h2>\n\n\n\n<p>Node.js brings many advantages to the table. For one, it&#8217;s already a lightning-fast scripting environment, and since it is built on<strong> Google\u2019s engine<\/strong>, its performance is likely to improve over time. The npm registry is also expanding, so developers will probably have an even easier time finding what they&#8217;re looking for in the future.&nbsp;<\/p>\n\n\n\n<p>Speed is far from the only thing Node.js is famous for, though. Read about it on the internet, and you&#8217;ll see that most people talk extensively about its <strong>asynchronous, event-driven architecture<\/strong>.&nbsp;<\/p>\n\n\n\n<p>Let&#8217;s take a closer look at it and see how developers can benefit from it.<\/p>\n\n\n\n<p>To understand how it works, we need to compare it to one of the alternatives. PHP is used by almost 80% of the world&#8217;s websites, so we&#8217;ll use it as an example. If a PHP application is asked to open a file, it won&#8217;t handle any other requests before it opens the said file. All subsequent requests depend on the execution of the first one.<\/p>\n\n\n\n<p>By contrast, Node.js&#8217;s architecture is asynchronous, meaning multiple requests can be processed simultaneously. One request doesn&#8217;t need to wait for the execution of another, and <strong>the content delivery is much more efficient<\/strong>. As a result, the applications created with Node.js are <strong>fast, robust, and easily scalable<\/strong>.<\/p>\n\n\n\n<p>In light of all this, it&#8217;s little wonder that tech giants like <em>IBM, LinkedIn, Netflix, and PayPal<\/em> have used Node.js during the development of some of their products.<\/p>\n\n\n\n<p>ScalaHosting understands the needs of Node.js users and offers the unique<strong> Node.Js Manager<\/strong> with n8n integration, natively available in SPanel. This is one of the many things that make Scala a great <a href=\"https:\/\/www.scalahosting.com\/siteground-alternative.html\">SiteGround alternative<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"used\"><strong>What is Node.js Used For?<\/strong><\/h2>\n\n\n\n<p>Node.js has been around since 2009, which isn&#8217;t that long compared to other <strong>web technologies<\/strong>. Nevertheless, it has already proven its worth as a robust development framework with dozens of uses in a number of different spheres.&nbsp;<\/p>\n\n\n\n<p><strong>Here&#8217;s where it shines the most:<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"chat-applications\"><strong>Chat applications<\/strong><\/h3>\n\n\n\n<p>The ability to <strong>efficiently deliver dynamic content<\/strong>, coupled with the existence of JavaScript libraries for real-time web applications, make Node.js perfect for developing excellent instant messaging services.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"browser-games\"><strong>Browser games<\/strong><\/h3>\n\n\n\n<p><strong>HTML5<\/strong> and the evolution of other technologies mean that you can now create great browser-based games without relying on horrible Flash animations. Node.js is one of the best new alternatives.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"streaming-applications\"><strong>Streaming applications<\/strong><\/h3>\n\n\n\n<p>Once again, Node.js&#8217;s asynchronous I\/O enables streaming services to provide real-time, high-quality video to hundreds of thousands of users at once.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"back-end-tools\"><strong>Back end tools<\/strong><\/h3>\n\n\n\n<p><strong>JavaScript is mainly associated with front-end development<\/strong>, but the truth is, there are JS libraries that enable developers to create fast and reliable command-line apps with Node.js.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"node\"><strong>Node.js System Requirements<\/strong><\/h2>\n\n\n\n<p>Node.js&#8217;s lightweight design is one of the things that has made it so popular with developers. You have to bear in mind that you&#8217;ll need reasonably powerful hardware if you want to use Node.js on Windows. However, when it comes to Linux, the resource usage is so low, you can run standard <strong>Node.js applications <\/strong>even on a<strong> Raspberry Pi.<\/strong><\/p>\n\n\n\n<p>There are Linux versions for <strong>ARM and 64-bit architectures<\/strong>, and on Windows, it runs on both 32- and 64-bit machines. <strong>macOS servers need 64-bit chips to run Node.js<\/strong>, and there&#8217;s also an official image for Docker containers.<\/p>\n\n\n\n<p>All in all, Node.js can run on <strong>most modern setups<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/gabriel-heinzer-g5jpH62pwes-unsplash-scaled.jpg\"><img decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/gabriel-heinzer-g5jpH62pwes-unsplash-1024x768.jpg\" alt=\"Installing Node.js on a VPS Server, Node.js System Requirements\" class=\"wp-image-63261\" srcset=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/gabriel-heinzer-g5jpH62pwes-unsplash-1024x768.jpg 1024w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/gabriel-heinzer-g5jpH62pwes-unsplash-300x225.jpg 300w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/gabriel-heinzer-g5jpH62pwes-unsplash-768x576.jpg 768w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/gabriel-heinzer-g5jpH62pwes-unsplash-1536x1152.jpg 1536w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/gabriel-heinzer-g5jpH62pwes-unsplash-2048x1536.jpg 2048w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"npm\"><strong>Installing Node.js and npm<\/strong><\/h2>\n\n\n\n<p>Because it&#8217;s available on so many different operating systems and setups, there&#8217;s no one-size-fits-all tutorial that will show you the exact steps for installing Node.js. Most <strong>web hosting VPS servers<\/strong> <a href=\"https:\/\/www.scalahosting.com\/blog\/what-is-linux-hosting\/\"><strong>run on Linux<\/strong><\/a>, so we&#8217;ll focus on it. Even with it, however, the installation process varies from distribution to distribution. Here are the two most common scenarios.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"installing-node-js-and-npm-from-the-ubuntu-official-repository\"><strong>Installing Node.js and npm from the Ubuntu Official Repository<\/strong><\/h3>\n\n\n\n<p>Node.js is popular enough to make its way into the official software repositories of one of the world&#8217;s most popular Linux distributions \u2013 Ubuntu. <strong>If your VPS uses Ubuntu<\/strong>, installing Node.js involves a few simple steps. Let&#8217;s have a look at them.<\/p>\n\n\n\n<p><strong>1. Update Your VPS<\/strong><\/p>\n\n\n\n<p>Before installing Node.js, it is advisable to update the package index for your Ubuntu virtual server. You can do so with the following command:<\/p>\n\n\n\n<p class=\"alert-orange\"><em>sudo apt-get update<\/em><\/p>\n\n\n\n<p><strong>2. Install Node.js<\/strong><\/p>\n\n\n\n<p>Because Node.js is a part of Ubuntu&#8217;s official repository, you can install it with a single command:<\/p>\n\n\n\n<p class=\"alert-orange\"><em>sudo apt-get install nodejs<\/em><\/p>\n\n\n\n<p class=\"alert-blue\">NOTE: If you take this approach, Ubuntu will install the latest available package from the repository. This installation method isn&#8217;t suitable if you need a specific version of Node.js.<\/p>\n\n\n\n<p><strong>3. Install npm<\/strong><\/p>\n\n\n\n<p>Once again, you can install npm&#8217;s latest version with a single command:<\/p>\n\n\n\n<p class=\"alert-orange\"><em>sudo apt-get install npm<\/em><\/p>\n\n\n\n<p><strong>4. Verify that the installation is a success<\/strong><\/p>\n\n\n\n<p>The easiest way to ensure that the installation is successful is to ask Ubuntu which versions of Node.js and npm you&#8217;re currently using.<\/p>\n\n\n\n<p>For Node.js, the command is:<\/p>\n\n\n\n<p class=\"alert-orange\"><em>node -v<\/em><\/p>\n\n\n\n<p>and for npm, you need to enter:<\/p>\n\n\n\n<p class=\"alert-orange\"><em>npm -v<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/nodejs-version.png\"><img decoding=\"async\" width=\"299\" height=\"117\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/nodejs-version.png\" alt=\"Installing Node.js on a VPS Server, Installing Node.js and npm from the Ubuntu Official Repository\" class=\"wp-image-63262\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"installing-node-js-manually\"><strong>Installing Node.js Manually<\/strong><\/h3>\n\n\n\n<p>If you don&#8217;t run Ubuntu or prefer to install a version of Node.js other than the latest one, you can perform the installation manually. It&#8217;s a bit more complicated than setting it up straight from the repository, but as long as you&#8217;re careful, you should have no problems doing it. Here are the steps:<\/p>\n\n\n\n<p><strong>1. Download and extract the Node.js archive<\/strong><\/p>\n\n\n\n<p>You first need to make sure you&#8217;re in your home directory. The command to go straight there is:<\/p>\n\n\n\n<p class=\"alert-orange\"><em>cd ~<\/em><\/p>\n\n\n\n<p>Next, you can use the following command to download the Node.js archive:<\/p>\n\n\n\n<p class=\"alert-orange\"><em>wget <\/em><em>https:\/\/nodejs.org\/dist\/v14.18.1\/node-v14.18.1-linux-x64.tar.xz<\/em><\/p>\n\n\n\n<p class=\"alert-blue\">NOTE: With this command, you will <strong>download version 14.18.1<\/strong> (<em>the latest at the time of writing<\/em>). If you want to download a different version of Node.js, you&#8217;ll need to adjust the URL accordingly.<\/p>\n\n\n\n<p><strong>2. Extract the archive<\/strong><\/p>\n\n\n\n<p>To extract the Node.js archive you&#8217;ve just downloaded, use the following command:<\/p>\n\n\n\n<p class=\"alert-orange\"><em>tar xvf node-v14.18.1-linux-x64.tar.xz<\/em><\/p>\n\n\n\n<p>The files will be extracted in a new directory called <em>node-v14.18.1-linux-x64<\/em>.<\/p>\n\n\n\n<p><strong>3. Rename Node.js&#8217;s directory to make your life easier<\/strong><\/p>\n\n\n\n<p>While not strictly necessary, this step will <strong>simplify the installation process<\/strong>. What we&#8217;ll do is rename the folder with the extracted files from <em>node-v14.18.1-linux-x64 <\/em>into something less cumbersome like <em>node<\/em>, for example. Here&#8217;s the command:<\/p>\n\n\n\n<p class=\"alert-orange\"><em>mv node-v14.18.1-linux-x64 node<\/em><\/p>\n\n\n\n<p><strong>4. Install Node.js&#8217;s and npm&#8217;s binaries<\/strong><\/p>\n\n\n\n<p>The final three commands will create the required directory, copy the binaries in it, and create the necessary symbolic links:<\/p>\n\n\n\n<p class=\"alert-orange\"><em>mkdir ~\/bin\n<br>cp node\/bin\/node ~bin\n<br>cd~ bin\n<br>ln -s ..\/node\/lib\/node_modules\/npm\/bin\/npm-cli.js npm<\/em><\/p>\n\n\n\n<p><strong>5. Check whether the installation is successful<\/strong><\/p>\n\n\n\n<p>Once again, you can ask Linux which versions of Node.js and npm are installed on the server to confirm that everything is fine. The commands are:<\/p>\n\n\n\n<p class=\"alert-orange\"><em>node -v<\/em><\/p>\n\n\n\n<p>and<\/p>\n\n\n\n<p class=\"alert-orange\"><em>npm -v<\/em><\/p>\n\n\n\n<p>In our case, the responses should be <em>v14.18.1<\/em> and <em>6.14.15<\/em>, respectively.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/lautaro-andreani-xkBaqlcqeb4-unsplash-scaled.jpg\"><img decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/lautaro-andreani-xkBaqlcqeb4-unsplash-1024x683.jpg\" alt=\"Installing Node.js on a VPS Server, Installing Node.js Manually\" class=\"wp-image-63263\" srcset=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/lautaro-andreani-xkBaqlcqeb4-unsplash-1024x683.jpg 1024w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/lautaro-andreani-xkBaqlcqeb4-unsplash-300x200.jpg 300w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/lautaro-andreani-xkBaqlcqeb4-unsplash-768x512.jpg 768w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/lautaro-andreani-xkBaqlcqeb4-unsplash-1536x1024.jpg 1536w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/lautaro-andreani-xkBaqlcqeb4-unsplash-2048x1365.jpg 2048w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"apps\"><strong>Starting Node.js Apps<\/strong><\/h2>\n\n\n\n<p>Having installed Node.js and npm on your server, you&#8217;re probably wondering how to start an application with them. How you&#8217;re going to go about it depends on the app itself.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"using-npm\"><strong>Using npm<\/strong><\/h3>\n\n\n\n<p>If you need to start a production-ready app with a valid <strong>package.json<\/strong> file, you can use the npm package manager. The command is:<\/p>\n\n\n\n<p class=\"alert-orange\"><em>nohup npm start \u2013production &amp;<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"using-node\"><strong>Using Node<\/strong><\/h3>\n\n\n\n<p>If your app doesn&#8217;t have a package.json file, you&#8217;ll need to use Node.js itself. You can do it with the following command.<\/p>\n\n\n\n<p class=\"alert-orange\"><em>nohup node [your app&#8217;s name].js &amp;<\/em><\/p>\n\n\n\n<p>Note that if you choose to run an app that does not have an included package.json file, you won\u2019t be able to manage it with npm.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how\"><strong>How to Stop an Application<\/strong><\/h2>\n\n\n\n<p>To <strong>terminate a running application<\/strong>, we need to kill the process. Luckily, there is an easy command to stop any Node.js processes on the server:<\/p>\n\n\n\n<p><em>pkill node<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/code-583073_1280.jpg\"><img decoding=\"async\" width=\"1024\" height=\"546\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/code-583073_1280-1024x546.jpg\" alt=\"Installing Node.js on a VPS Server, How to Stop an Application\" class=\"wp-image-63264\" srcset=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/code-583073_1280-1024x546.jpg 1024w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/code-583073_1280-300x160.jpg 300w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/code-583073_1280-768x409.jpg 768w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/code-583073_1280.jpg 1280w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"web\"><strong>Connect your Web Server with a Running Node.js App<\/strong><\/h2>\n\n\n\n<p>Because of the various combinations of technologies \u0430 VPS can handle, there are many ways to connect your website to a<strong> Node.js app<\/strong>. Since Apache is one of the most common web servers, we will use this as the showcase platform.&nbsp;<\/p>\n\n\n\n<p>We want to utilize the <strong>.htaccess file<\/strong> to perform the connection between the website and the Node.js app.<\/p>\n\n\n\n<p>The .htaccess file is located in the document root folder (<em>home\/[your username]\/public_html\/<\/em>). If you have a web hosting control panel installed on your server, you can get to it via the integrated file manager. Otherwise, your option is to access the server through SSH and open it with a text editor.<\/p>\n\n\n\n<p><strong>Here&#8217;s what you need to add to your .htaccess file:<\/strong><\/p>\n\n\n\n<p class=\"alert-orange\"><em>DirectoryIndex disabled\n<br>RewriteEngine On\n<br>RewriteRule ^$ http:\/\/127.0.0.1:XXX\/ [P,L]\n<br>RewriteCond %{REQUEST_FILENAME} !-f\n<br>RewriteRule ^(.*)$ http:\/\/127.0.0.1:XXX\/$1 [P,L]<\/em><\/p>\n\n\n\n<p>Replace \u201cXXX\u201d with the port number of your Node.js application. Once done, remember to save the changes to your .htaccess file before exiting the editor.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"on\"><strong>Deploying a Node.js Application with SPanel<\/strong><\/h2>\n\n\n\n<p>Those of you finding all these steps a bit intimidating will be happy to learn that if you have an <a href=\"https:\/\/www.scalahosting.com\/spanel.html\"><strong>SPanel VPS<\/strong><\/a>, you don&#8217;t need to go through any of them.<\/p>\n\n\n\n<p>Node.js integration used to be <strong>one of the most heavily requested features<\/strong> by our SPanel clients, and we had no other choice but to implement it. <strong>SPanel servers<\/strong> have always supported Node.js, but right now, you don&#8217;t need to install it yourself or ask someone else to do it.<\/p>\n\n\n\n<p>Node.js is set up and configured on all SPanel servers, and inside our proprietary management platform, you&#8217;ll find an easy-to-use tool that helps you <strong>launch applications in a matter of clicks<\/strong>. Here are all the steps:<\/p>\n\n\n\n<p><strong>1. Upload your application to a folder of your choice.<\/strong><\/p>\n\n\n\n<p>You can use your favorite FTP client or SPanel&#8217;s File Manager to upload the Node.js app from your local computer to the virtual server.<\/p>\n\n\n\n<p><strong>2. Deploy the application through SPanel&#8217;s NodeJS Manager.<\/strong><\/p>\n\n\n\n<p>SPanel&#8217;s NodeJS manager is available in the User Interface.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/nodejs-manager-4.1.png\"><img decoding=\"async\" width=\"861\" height=\"305\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/nodejs-manager-4.1.png\" alt=\"Installing Node.js on a VPS Server, Deploying a Node.js Application with SPanel\" class=\"wp-image-63265\" srcset=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/nodejs-manager-4.1.png 861w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/nodejs-manager-4.1-300x106.png 300w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/nodejs-manager-4.1-768x272.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n\n\n\n<p>The <strong>Deploy a New App <\/strong>button opens a popup that lets you quickly launch your application. All you need to do is set the application URL, the port it will listen to, and the path to the app itself.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><a href=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/nodejs-deploy-app.4.2.png\"><img decoding=\"async\" width=\"866\" height=\"426\" src=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/nodejs-deploy-app.4.2.png\" alt=\"Installing Node.js on a VPS Server, Deploying a Node.js Application with SPanel 2\" class=\"wp-image-63266\" srcset=\"https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/nodejs-deploy-app.4.2.png 866w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/nodejs-deploy-app.4.2-300x148.png 300w, https:\/\/www.scalahosting.com\/blog\/wp-content\/uploads\/2021\/12\/nodejs-deploy-app.4.2-768x378.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/a><\/figure>\n\n\n\n<p class=\"alert-blue\">NOTE: You can only use ports between 3000 and 3500 for your Node.js applications.<\/p>\n\n\n\n<p>Click <strong>Deploy<\/strong> to complete the process.<\/p>\n\n\n\n<p><strong>3. Manage your Node.js applications.<\/strong><\/p>\n\n\n\n<p>SPanel&#8217;s NodeJS Manager displays a list of all currently deployed Node.js applications. The <strong>Actions<\/strong> drop-down menus let you <strong>Stop<\/strong>, <strong>Restart<\/strong>, and <strong>Undeploy<\/strong> them one by one.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>If you want to start a<strong> simple blog or a small online store<\/strong>, you probably don&#8217;t need Node.js. The JavaScript runtime environment is more suitable for more complex projects, usually led by people with more experience in the field.<\/p>\n\n\n\n<p>With the correct commands, they should have no problems installing and using Node.js on a self-managed virtual server. However, even the biggest command-line wizards will appreciate the convenience of launching applications from an easy-to-use graphical user interface like SPanel&#8217;s NodeJS Manager.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faq\"><strong>Frequently Asked Questions<\/strong><\/h2>\n\n\n\n<p><strong>Q:<\/strong> <strong>Must I pay to use Node.js?<\/strong><\/p>\n\n\n\n<p><strong>A:<\/strong> Node.js is open-source and is free for use. Having said this, if you develop your Node.js project within a <strong>proprietary integrated development environment (IDE)<\/strong>, there will likely be a fee involved as it is a commercial product.&nbsp;<\/p>\n\n\n\n<p><strong>Q:<\/strong> <strong>What is NPM?<\/strong><\/p>\n\n\n\n<p><strong>A:<\/strong> NPM is short for <strong>Node Package Manager<\/strong>. It serves as a repository for JavaScript packages that developers incorporate into their projects. It also gives web devs the capability to manage a specific version of each package.<\/p>\n\n\n\n<p><strong>Q:<\/strong> <strong>Can I use Node.js with shared hosting?<\/strong><\/p>\n\n\n\n<p><strong>A:<\/strong> In some circumstances, it may be possible to use Node.js with shared hosting. This will largely be dependent on the hosting provider. Still, <strong>VPS hosting<\/strong> is a much better choice if you\u2019re looking to maximize your performance and security.<\/p>\n\n\n\n<p><strong>Q:<\/strong> <strong>What database can be used with Node.js?<\/strong><\/p>\n\n\n\n<p><strong>A:<\/strong> You can use any type of database with Node.js without any issues. Just make sure the database package is equipped with the necessary drivers to allow Node.js to interact with it. One good example would be <strong>MongoDB<\/strong> as it is designed to work well with data in <strong>JSON format specifically<\/strong>.<\/p>\n\n\n\n<script type=\"application\/ld+json\">\n    {\n      \"@context\": \"https:\/\/schema.org\",\n      \"@type\": \"FAQPage\",\n      \"mainEntity\": [{\n        \"@type\": \"Question\",\n        \"name\": \"Must I pay to use Node.js?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"Node.js is open-source and is free for use. Having said this, if you develop your Node.js project within a proprietary integrated development environment (IDE), there will likely be a fee involved as it is a commercial product.\"\n        }\n      }, {\n        \"@type\": \"Question\",\n        \"name\": \"What is NPM?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"NPM is short for Node Package Manager. It serves as a repository for JavaScript packages that developers incorporate into their projects. It also gives web devs the capability to manage a specific version of each package.\"\n        }\n      },{\n        \"@type\": \"Question\",\n        \"name\": \"Can I use Node.js with shared hosting?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"In some circumstances, it may be possible to use Node.js with shared hosting. This will largely be dependent on the hosting provider. Still, VPS hosting is a much better choice if you\u2019re looking to maximize your performance and security.\"\n        }\n      },{\n        \"@type\": \"Question\",\n        \"name\": \"What database can be used with Node.js?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"You can use any type of database with Node.js without any issues. Just make sure the database package is equipped with the necessary drivers to allow Node.js to interact with it. One good example would be MongoDB as it is designed to work well with data in JSON format specifically.\"\n        }\n      }]\n    }<\/script>\n\n\n\n<p class=\"youtube-player\" id=\"4zZiFTQoXRM\">What is a VPS &#8211; Everything you need to know!<\/p>\n\n\n\n<script type=\"application\/ld+json\">\r\n    {\r\n        \"@context\": \"https:\/\/schema.org\",\r\n        \"@type\": \"VideoObject\",\r\n        \"name\": \"What is a VPS - Everything you need to know!\",\r\n        \"description\": \"In this video we'll explain what is a VPS, how does it work and why you might need one. A lot of poeple are familiar with shared hosting nowdays so we'll compare these two options so it's easy to understand.\",\r\n        \"thumbnailUrl\": [\r\n            \"https:\/\/i3.ytimg.com\/vi\/4zZiFTQoXRM\/maxresdefault.jpg\"\r\n        ],\r\n        \"uploadDate\": \"2022-04-11\",\r\n        \"duration\": \"PT4M19S\",\r\n        \"embedUrl\": \"https:\/\/www.youtube.com\/watch?v=4zZiFTQoXRM\"\r\n    }\r\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Node.js is an open-source platform that helps JavaScript users execute their code outside a web browser. It is a free &#8230;<\/p>\n","protected":false},"author":113,"featured_media":63268,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[61,3],"tags":[],"class_list":["post-63256","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-hosting","category-web-hosting-in-general"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/posts\/63256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/users\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/comments?post=63256"}],"version-history":[{"count":9,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/posts\/63256\/revisions"}],"predecessor-version":[{"id":72934,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/posts\/63256\/revisions\/72934"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/media\/63268"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/media?parent=63256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/categories?post=63256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/blog\/wp-json\/wp\/v2\/tags?post=63256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}