{"id":1655,"date":"2020-11-11T16:16:32","date_gmt":"2020-11-11T21:16:32","guid":{"rendered":"https:\/\/kb.n0c.com\/?post_type=ht_kb&#038;p=1655"},"modified":"2026-02-06T14:37:16","modified_gmt":"2026-02-06T19:37:16","slug":"nodejs-application-management","status":"publish","type":"ht_kb","link":"https:\/\/kb.n0c.com\/en\/knowledge-base\/nodejs-application-management\/","title":{"rendered":"How to Manage Node.js Applications"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>Node.js is essentially code executed on our servers to  host, create and control web applications using this type of language.<\/p>\n\n\n\n<p>In the following, we will focus on information for beginners. We will start by explaining how to access Node.js in N0C and we will provide a detailed example of launching and modifying an application using this interface.<\/p>\n\n\n\n<p>Then, for more advanced users, we will explain how to do these same operations in command line.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><strong>Note :<\/strong> <meta charset=\"utf-8\">The&nbsp;<a href=\"https:\/\/kb.n0c.com\/en\/glossary\/\" data-type=\"URL\" data-id=\"https:\/\/kb.n0c.com\/en\/glossary\/\">Glossary of N0C<\/a>&nbsp;contains explanations on multiple topics and can be consulted to clarify certain terms.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Documentation<\/h2>\n\n\n\n<p>Documentation on Node.js can be found on the Web, in particular under: <a href=\"https:\/\/nodejs.org\/en\/docs\/guides\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/nodejs.org\/en\/docs\/guides\/<\/a>.<\/p>\n\n\n\n<p>You can also refer to this site for more information: <a href=\"https:\/\/docs.cloudlinux.com\/command-line_tools\/#node-js-selector\">https:\/\/docs.cloudlinux.com\/command-line_tools\/#node-js-selector<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Debugging Applications<\/h3>\n\n\n\n<p>When an error occurs, a page like the one below is displayed:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage.png\"><img loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"187\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage.png\" alt=\"\" class=\"wp-image-6231\" style=\"width:417px;height:133px\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage.png 586w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage-300x96.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage-50x16.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage-60x19.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage-100x32.png 100w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/a><\/figure><\/div>\n\n\n<p><br>This page is not very explanatory. Activating the development mode allows you to investigate (please refer to the article <a href=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/debugging-a-nodejs-ruby-or-python-application-with-n0c\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Debug a Node.js, Ruby or Python Application<\/a>).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisite<\/h2>\n\n\n\n<p>Enter the following address in your web browser: <a href=\"https:\/\/mg.n0c.com\/en\/\">https:\/\/mg.n0c.com\/en\/<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Access to Node.js in N0C<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the Sidebar menu, select <strong>Languages<\/strong>&nbsp;&gt;&nbsp;<strong>Node.js<\/strong>.<\/li>\n\n\n\n<li>Applications already set up are displayed in the interface:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_1_Applications_EN-1024x342.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"342\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_1_Applications_EN-1024x342.png\" alt=\"\" class=\"wp-image-19947\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_1_Applications_EN-1024x342.png 1024w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_1_Applications_EN-300x100.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_1_Applications_EN-768x256.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_1_Applications_EN-50x17.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_1_Applications_EN-1536x512.png 1536w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_1_Applications_EN-2048x683.png 2048w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_1_Applications_EN-60x20.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_1_Applications_EN-100x33.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">Implementation of a New Node.js Application with N0C<\/h2>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">Should you decide to deploy effortlessly a Nuxt.js application on N0C hosting, please refer to <a href=\"https:\/\/github.com\/PlanetHoster\/nuxt-demo\">this guide<\/a>. The manual approach is explained in <a href=\"https:\/\/vimeo.com\/1011383078\">this video<\/a>.<\/p>\n\n\n\n<p>To explain the approach more easily, we will proceed with an example.&nbsp;<\/p>\n\n\n\n<p>Let&#8217;s say you want to create the <strong>app2.js<\/strong> application that displays the words &#8220;Hello World! NodeJS&#8221;. Three steps are necessary:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>First of all, you have to <strong>create an application<\/strong> in the directory intended to contain it (we will call this directory &#8220;<strong>app2<\/strong>&#8221; as an example, but the user can give it the name they desire). When it is executed, the application displays the words &#8220;It works!&#8221;.<\/li>\n\n\n\n<li>Then you have to <strong>program<\/strong> it appropriately (in our example, so that it displays &#8220;Hello World! NodeJS&#8221;) and create a &#8220;<strong>package.json<\/strong>&#8221; file. <\/li>\n\n\n\n<li>Finally, you have to <strong>invoke<\/strong> the application environment.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Step #1 \u2013 Creation of an Application with Nodejs<\/h3>\n\n\n\n<p>Make sure the <strong>app2<\/strong> directory is created (please refer to the article <a href=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/n0c-filemanager\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Use the File Manager<\/a>).<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click on the <strong>Create <\/strong>button:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/11\/NodeJS_2_EN.png\"><img loading=\"lazy\" decoding=\"async\" width=\"306\" height=\"174\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/11\/NodeJS_2_EN.png\" alt=\"\" class=\"wp-image-5006\" style=\"aspect-ratio:1.7666666666666666;width:164px;height:auto\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/11\/NodeJS_2_EN.png 306w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/11\/NodeJS_2_EN-300x171.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/11\/NodeJS_2_EN-50x28.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/11\/NodeJS_2_EN-60x34.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/11\/NodeJS_2_EN-100x57.png 100w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><\/a><\/figure><\/div>\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Fill-in the required information in the <strong>Creation of and Application with Nodejs<\/strong> dialog box:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_3_Rev_mai_2025_EN-918x1024.png\"><img loading=\"lazy\" decoding=\"async\" width=\"918\" height=\"1024\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_3_Rev_mai_2025_EN-918x1024.png\" alt=\"\" class=\"wp-image-20060\" style=\"width:492px;height:auto\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_3_Rev_mai_2025_EN-918x1024.png 918w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_3_Rev_mai_2025_EN-269x300.png 269w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_3_Rev_mai_2025_EN-768x856.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_3_Rev_mai_2025_EN-45x50.png 45w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_3_Rev_mai_2025_EN-54x60.png 54w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_3_Rev_mai_2025_EN-90x100.png 90w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_3_Rev_mai_2025_EN.png 1182w\" sizes=\"auto, (max-width: 918px) 100vw, 918px\" \/><\/a><\/figure><\/div>\n\n\n<ul start=\"2\" class=\"wp-block-list\">\n<li>Choose the desired Node.js&nbsp;<strong>VERSION<\/strong>.<\/li>\n\n\n\n<li>Indicate in which <strong>APP DIRECTORY<\/strong> you want the application to be created (in our example we would enter <strong>app2<\/strong>).<\/li>\n\n\n\n<li>Indicate under <strong>APPLICATION DOMAIN \/ URL<\/strong> from which URL the application should be accessible (in our example, we would write <strong>app2<\/strong>).<\/li>\n\n\n\n<li>Indicate the <strong>BOOT FILE<\/strong> (optionnal).<\/li>\n\n\n\n<li>Choose the <strong>APPLICATION MODE<\/strong> (you can select <strong>Development<\/strong> or <strong>Production<\/strong>). <\/li>\n\n\n\n<li>Click on the <strong>CREATE<\/strong> BUTTON. A message confirming the success of the creation is then displayed.<\/li>\n<\/ul>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Confirm the creation of <strong>app2.js<\/strong> by opening the <strong>app2<\/strong> directory in the <strong>File Manager<\/strong> (please refer to the article <a href=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/n0c-filemanager\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Use the File Manager<\/a>).<\/li>\n\n\n\n<li>Test Node.js application by typing in your browser <a href=\"http:\/\/%24%7Bvotredomaine%7D\/app2\" rel=\"nofollow\">https:\/\/${yourdomain}\/app2<\/a>, ${<strong>yourdomain<\/strong>} having to be replaced by your real domain name.<\/li>\n\n\n\n<li>The result is (as expected): \u00ab&nbsp;It works !&nbsp;\u00bb.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Step #2 \u2013 Program the Application<\/h3>\n\n\n\n<p>Now that the Node.js application is installed in the directory to be used and functional, you can program it as you wish and improve the environment with the <em>setting files<\/em> <strong>package.json<\/strong> and the <strong>npm<\/strong> package manager.&nbsp;<\/p>\n\n\n\n<p>A &#8220;package.json&#8221; is a JSON file that exists at the base of a Node.js project. It contains metadata related to the project and is used to manage dependencies, scripts, versions and various other aspects of the project.&nbsp;<\/p>\n\n\n\n<p>Here are the steps to program:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the&nbsp;<strong>File Manager<\/strong>, open the directory (in our example,&nbsp;<strong>app2<\/strong>) and edit the code&nbsp;<strong>app2.js<\/strong>&nbsp;(please refer to the article <a href=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/n0c-filemanager\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Use the File Manager<\/a>).<\/li>\n\n\n\n<li>Add the application configuration to the <strong>app2.js <\/strong>file. In our example, copy the following code in the programming window of the&nbsp;<strong>File Manager<\/strong>&nbsp;(please refer to the article <a href=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/n0c-filemanager\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Use the File Manager<\/a>), so that the words &#8220;Hello World! NodeJS&#8221; will be displayed when the user runs <strong>app2<\/strong> on your domain:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">const http = require('http')\nconst hostname = '127.0.0.1';\nconst port = 'passenger';\nconst yourdomain = 'yourdomain.com'\n\nconst server = http.createServer((req, res) =&gt; {\n    res.statusCode = 200;\n    res.setHeader('Content-Type', 'text\/plain');\n    res.end('Hello World! NodeJS');\n});\nserver.listen(port, hostname, () =&gt; {\n    console.log(`Server running at http:\/\/${yourdomain}\/`);\n}); <\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>In the code, replace <strong>${yourdomain}<\/strong> by the name of your domain name.<\/li>\n\n\n\n<li>Save the code.<\/li>\n\n\n\n<li>At this point, restart the application, as explained in the paragraph <meta charset=\"utf-8\"><strong>Restart a Node.js Application<\/strong>.<\/li>\n\n\n\n<li>Test the application by typing in your browser via https:\/\/${yourdomain}\/app2. The result shall now be &#8220;Hello World! NodeJS&#8221;.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Install Dependencies in the \u00ab&nbsp;package.json&nbsp;\u00bb File<\/h4>\n\n\n\n<p>In order to install the dependencies of your project, make sure that your package.json is at the root of the project. Then :<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Identify the application (app2 in our example) and click on the <strong>Edit<\/strong> icon:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/02\/Icone_modifier-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"37\" height=\"44\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/02\/Icone_modifier-1.png\" alt=\"\" class=\"wp-image-15262\"\/><\/a><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_18_Modifier_EN-1024x344.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"344\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_18_Modifier_EN-1024x344.png\" alt=\"\" class=\"wp-image-19952\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_18_Modifier_EN-1024x344.png 1024w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_18_Modifier_EN-300x101.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_18_Modifier_EN-768x258.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_18_Modifier_EN-50x17.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_18_Modifier_EN-1536x517.png 1536w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_18_Modifier_EN-2048x689.png 2048w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_18_Modifier_EN-60x20.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_18_Modifier_EN-100x34.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Install the NPM module by clicking on the <strong>Install<\/strong> button:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_19_5_mai_2025_EN-886x1024.png\"><img loading=\"lazy\" decoding=\"async\" width=\"886\" height=\"1024\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_19_5_mai_2025_EN-886x1024.png\" alt=\"\" class=\"wp-image-20076\" style=\"width:516px;height:auto\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_19_5_mai_2025_EN-886x1024.png 886w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_19_5_mai_2025_EN-260x300.png 260w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_19_5_mai_2025_EN-768x888.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_19_5_mai_2025_EN-43x50.png 43w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_19_5_mai_2025_EN-52x60.png 52w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_19_5_mai_2025_EN-87x100.png 87w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_19_5_mai_2025_EN.png 1154w\" sizes=\"auto, (max-width: 886px) 100vw, 886px\" \/><\/a><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">Step #3 \u2013 Invoke the Application Environment &nbsp;<\/h3>\n\n\n\n<p>Before performing any other command (for example, <meta charset=\"utf-8\"><\/meta><code>npm<\/code>\u00a0or\u00a0<code>node<\/code>), you must call the application environment by running the following command:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_20_lancer_commande_5_mai_2025_EN-796x1024.png\"><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"1024\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_20_lancer_commande_5_mai_2025_EN-796x1024.png\" alt=\"\" class=\"wp-image-20089\" style=\"width:490px;height:auto\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_20_lancer_commande_5_mai_2025_EN-796x1024.png 796w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_20_lancer_commande_5_mai_2025_EN-233x300.png 233w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_20_lancer_commande_5_mai_2025_EN-768x988.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_20_lancer_commande_5_mai_2025_EN-39x50.png 39w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_20_lancer_commande_5_mai_2025_EN-47x60.png 47w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_20_lancer_commande_5_mai_2025_EN-78x100.png 78w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_20_lancer_commande_5_mai_2025_EN.png 1154w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/a><\/figure><\/div>\n\n\n<p>The command must be copied into the shell of the account in question. It is possible to connect via SSH.<\/p>\n\n\n\n<p>To see the command, you must edit the application (please refer to the paragraph&nbsp;<strong>NodeJS Application Settings Modification<\/strong>).<\/p>\n\n\n\n<p>So, in our example, the command copied is:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">source \/home\/fbkfdayw\/nodevenv\/app2\/11\/bin\/activate<\/pre>\n\n\n\n<p>Where :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&#8220;<strong>fbkfdayw<\/strong>&#8221; shall be replaced by your <strong>Username<\/strong>;<\/li>\n\n\n\n<li>&#8220;<strong>app2<\/strong>&#8221; shall be replaced by the name of your application; and<\/li>\n\n\n\n<li>&#8220;<strong>11<\/strong>&#8221; shall be replaced by the Node.js version of your application.<\/li>\n<\/ul>\n\n\n\n<p>You can consult the documentation available at <a href=\"https:\/\/nodejs.org\/en\/docs\/\">https:\/\/nodejs.org\/en\/docs\/<\/a> to help you debug your code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Actions on application with N0C<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Restart a Node.js Application<\/h3>\n\n\n\n<p>Sometimes it is necessary to restart an application as, for example, when you modify the code.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click on the&nbsp;<strong>Restart<\/strong>&nbsp;icon besides the application to activate:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/02\/Icone_redemarrer.png\"><img loading=\"lazy\" decoding=\"async\" width=\"38\" height=\"39\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/02\/Icone_redemarrer.png\" alt=\"\" class=\"wp-image-15251\"\/><\/a><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_redemarrer_EN-1024x381.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"381\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_redemarrer_EN-1024x381.png\" alt=\"\" class=\"wp-image-19964\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_redemarrer_EN-1024x381.png 1024w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_redemarrer_EN-300x112.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_redemarrer_EN-768x286.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_redemarrer_EN-50x19.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_redemarrer_EN-1536x572.png 1536w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_redemarrer_EN-2048x763.png 2048w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_redemarrer_EN-60x22.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_redemarrer_EN-100x37.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>A message shall be displayed to confirm the successful execution of the command.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Node.js Application Version Modification<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click on the&nbsp;<strong>Change version<\/strong>&nbsp;icon next to the application to modify:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/Modifier_version_icon_Jira_DP_7672.png\"><img loading=\"lazy\" decoding=\"async\" width=\"78\" height=\"76\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/Modifier_version_icon_Jira_DP_7672.png\" alt=\"\" class=\"wp-image-19972\" style=\"width:48px;height:auto\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/Modifier_version_icon_Jira_DP_7672.png 78w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/Modifier_version_icon_Jira_DP_7672-50x50.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/Modifier_version_icon_Jira_DP_7672-60x58.png 60w\" sizes=\"auto, (max-width: 78px) 100vw, 78px\" \/><\/a><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_12_mai_2025_EN-1024x336.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"336\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_12_mai_2025_EN-1024x336.png\" alt=\"\" class=\"wp-image-20199\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_12_mai_2025_EN-1024x336.png 1024w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_12_mai_2025_EN-300x99.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_12_mai_2025_EN-768x252.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_12_mai_2025_EN-50x16.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_12_mai_2025_EN-1536x505.png 1536w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_12_mai_2025_EN-2048x673.png 2048w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_12_mai_2025_EN-60x20.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_12_mai_2025_EN-100x33.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Select the desired<strong> <\/strong>NodeJS <strong>VERSION<\/strong> in the drop-down list:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_fenetre_liste_EN-1024x476.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"476\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_fenetre_liste_EN-1024x476.png\" alt=\"\" class=\"wp-image-19986\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_fenetre_liste_EN-1024x476.png 1024w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_fenetre_liste_EN-300x139.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_fenetre_liste_EN-768x357.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_fenetre_liste_EN-50x23.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_fenetre_liste_EN-1536x714.png 1536w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_fenetre_liste_EN-2048x952.png 2048w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_fenetre_liste_EN-60x28.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_version_fenetre_liste_EN-100x46.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Click on the&nbsp;<strong>Save<\/strong>&nbsp;icon:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_icone_sauvegarder.png\"><img loading=\"lazy\" decoding=\"async\" width=\"328\" height=\"178\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_icone_sauvegarder.png\" alt=\"\" class=\"wp-image-19980\" style=\"width:168px;height:auto\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_icone_sauvegarder.png 328w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_icone_sauvegarder-300x163.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_icone_sauvegarder-50x27.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_icone_sauvegarder-60x33.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_icone_sauvegarder-100x54.png 100w\" sizes=\"auto, (max-width: 328px) 100vw, 328px\" \/><\/a><\/figure><\/div>\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>A message shall be displayed to confirm the successful execution of the command. Otherwise, a warning message will be displayed.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Node.js Application Settings Modification<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Identify the application you want to modify and click on the <strong>Edit<\/strong> icon:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/02\/Icone_modifier-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"37\" height=\"44\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/02\/Icone_modifier-1.png\" alt=\"\" class=\"wp-image-15262\"\/><\/a><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_EN-1024x343.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"343\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_EN-1024x343.png\" alt=\"\" class=\"wp-image-19996\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_EN-1024x343.png 1024w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_EN-300x101.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_EN-768x257.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_EN-50x17.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_EN-1536x515.png 1536w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_EN-2048x686.png 2048w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_EN-60x20.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_modifier_EN-100x34.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Change the desired settings:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/03\/NodeJS_modifier_fenetre_EN-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"596\" height=\"976\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/03\/NodeJS_modifier_fenetre_EN-1.png\" alt=\"\" class=\"wp-image-18490\" style=\"aspect-ratio:0.7575757575757576;width:371px;height:auto\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/03\/NodeJS_modifier_fenetre_EN-1.png 596w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/03\/NodeJS_modifier_fenetre_EN-1-183x300.png 183w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/03\/NodeJS_modifier_fenetre_EN-1-31x50.png 31w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/03\/NodeJS_modifier_fenetre_EN-1-37x60.png 37w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/03\/NodeJS_modifier_fenetre_EN-1-61x100.png 61w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><\/a><\/figure><\/div>\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">The domain can only be selected at the time of creation. The domain is grayed out for information purposes and to make the complete URL easier to understand.<\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Install the npm module by clicking on the <strong>Install<\/strong> button.<\/li>\n\n\n\n<li>Click the <strong>EDIT<\/strong> button to save your changes.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Stopping and Starting an Application<\/h3>\n\n\n\n<p>It is possible to stop an application by clicking on the&nbsp;<strong>Stop<\/strong>&nbsp;icon:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/02\/Icone_arreter.png\"><img loading=\"lazy\" decoding=\"async\" width=\"38\" height=\"38\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/02\/Icone_arreter.png\" alt=\"\" class=\"wp-image-15269\"\/><\/a><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_arreter_mai_2025_EN-1-1024x338.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"338\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_arreter_mai_2025_EN-1-1024x338.png\" alt=\"\" class=\"wp-image-20014\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_arreter_mai_2025_EN-1-1024x338.png 1024w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_arreter_mai_2025_EN-1-300x99.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_arreter_mai_2025_EN-1-768x253.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_arreter_mai_2025_EN-1-50x16.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_arreter_mai_2025_EN-1-1536x506.png 1536w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_arreter_mai_2025_EN-1-2048x675.png 2048w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_arreter_mai_2025_EN-1-60x20.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_arreter_mai_2025_EN-1-100x33.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<p>It is possible to start an application by clicking on the&nbsp;<strong>Start<\/strong>&nbsp;icon:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/02\/Icone_demarrer.png\"><img loading=\"lazy\" decoding=\"async\" width=\"40\" height=\"42\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/02\/Icone_demarrer.png\" alt=\"\" class=\"wp-image-15271\"\/><\/a><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_demarrer_mai_2025_EN-2-1024x345.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"345\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_demarrer_mai_2025_EN-2-1024x345.png\" alt=\"\" class=\"wp-image-20046\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_demarrer_mai_2025_EN-2-1024x345.png 1024w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_demarrer_mai_2025_EN-2-300x101.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_demarrer_mai_2025_EN-2-768x259.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_demarrer_mai_2025_EN-2-50x17.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_demarrer_mai_2025_EN-2-1536x518.png 1536w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_demarrer_mai_2025_EN-2-2048x690.png 2048w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_demarrer_mai_2025_EN-2-60x20.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_demarrer_mai_2025_EN-2-100x34.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">Delete a Node.js Application<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Identify the application and click on the&nbsp;<strong>Delete <\/strong>icon:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/02\/Icone_supprimer.png\"><img loading=\"lazy\" decoding=\"async\" width=\"37\" height=\"41\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2024\/02\/Icone_supprimer.png\" alt=\"\" class=\"wp-image-15259\"\/><\/a><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_supprimer_mai_2025_EN-1024x342.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"342\" src=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_supprimer_mai_2025_EN-1024x342.png\" alt=\"\" class=\"wp-image-20031\" srcset=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_supprimer_mai_2025_EN-1024x342.png 1024w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_supprimer_mai_2025_EN-300x100.png 300w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_supprimer_mai_2025_EN-768x256.png 768w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_supprimer_mai_2025_EN-50x17.png 50w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_supprimer_mai_2025_EN-1536x513.png 1536w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_supprimer_mai_2025_EN-2048x684.png 2048w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_supprimer_mai_2025_EN-60x20.png 60w, https:\/\/kb.n0c.com\/wp-content\/uploads\/2025\/05\/NodeJS_supprimer_mai_2025_EN-100x33.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>At the command prompt, confirm the deletion.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Implementation of a New Node.js Application in Command Line<\/h2>\n\n\n\n<p>For more advanced users, the command line approach can be used.&nbsp;<\/p>\n\n\n\n<p>The following steps have to be followed in order:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Connect in SSH.<\/li>\n\n\n\n<li>Find the availble Node.js versions.<\/li>\n\n\n\n<li>Create the functional base application at the CloudLinux level.<\/li>\n\n\n\n<li>Set up the application.<\/li>\n<\/ol>\n\n\n\n<p><strong>Note<\/strong><\/p>\n\n\n\n<p>The json format is supported only as a command return. So, it is possible to format the return by redirecting the stdout to python -m json.tool. Example:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/usr\/sbin\/cloudlinux-selector get --json --interpreter=nodejs | python -m json.tool<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"etape-1-se-connecter-en-ssh\">Step #1 \u2013 Connect in&nbsp;<strong>SSH<\/strong><\/h3>\n\n\n\n<p>Connect in SSH ( please refer to the article <a href=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/how-to-create-an-ssh-key-and-connect-to-an-account\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Create an SSH Key and Connect to an Account Remotely<\/a>).<\/p>\n\n\n\n<p>For example, if you are using the Apple MacOSX environment, you can enter:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh &lt; <strong>USER &gt;<\/strong>@ &lt; <strong>DOMAIN &gt;<\/strong> -p <strong>PORT<\/strong><\/pre>\n\n\n\n<p>Where :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>USER&nbsp;<\/strong>:&nbsp; Your username.<\/li>\n\n\n\n<li><strong>DOMAIN&nbsp;<\/strong>: The name of the domain (make sure it points to the hosting).<\/li>\n\n\n\n<li><strong>PORT<\/strong>&nbsp;: Port to use for hosting (unless otherwise specified, use&nbsp;5022).<\/li>\n<\/ul>\n\n\n\n<p>At the command prompt, provide your <strong>password<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step #2 \u2013 Find the Available Node.js Versions<\/h3>\n\n\n\n<p>This command will return the versions of Node.js available on the server:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$~ \/usr\/sbin\/cloudlinux-selector get --json --interpreter=nodejs<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step #3 \u2013<strong>&nbsp;Create the Basic Functional Node.js Application at CloudLinux Level<\/strong><\/h3>\n\n\n\n<p>The following command creates a functional database:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$~ \/usr\/sbin\/cloudlinux-selector create --interpreter=nodejs --json --app-root=&lt;APP_ROOT&gt; --app-uri=&lt;APP_URI&gt; --app-mode=production --version=&lt;VERSION&gt; --domain=&lt;DOMAIN&gt; &lt;STARTUP_FILE&gt;<\/pre>\n\n\n\n<p>Where:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>APP_ROOT:<\/strong>&nbsp;The directory where you want to install your application (keep this variable for future commands). Example: \/home\/user\/applicationnode1.<\/li>\n\n\n\n<li><strong>APP_URI:<\/strong>&nbsp;The path to your application after your domain. Example: \/applicationnode1 would become following url: domain.com\/applicationode1.<\/li>\n\n\n\n<li><strong>VERSION<\/strong>: An available version (as per the return command previously seen). Exemple: 9.11.<\/li>\n\n\n\n<li><strong>DOMAIN:<\/strong>&nbsp;The domain where you want to run your application. Example: domain.com.<\/li>\n\n\n\n<li><strong>STARTUP_FILE:<\/strong>&nbsp;The name of the file to enter into your application: app.js by default. Example: index.js.<\/li>\n<\/ul>\n\n\n\n<p>The expected return is: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{\"result\": \"success\", \"timestamp\": 1596731243.1282492}<\/pre>\n\n\n\n<p>You now have a functional Node.js&nbsp;application if \u00ab&nbsp;<strong>status=Ok<\/strong>&nbsp;\u00bb is displayed.<\/p>\n\n\n\n<p>Otherwise, you should see the error message and correct the order accordingly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><meta charset=\"utf-8\">Step #4 \u2013 Setup the application<\/h3>\n\n\n\n<p>Upload your application to the directory where you installed your application (&lt;APP_ROOT&gt;) including your package.json.<\/p>\n\n\n\n<p>Once your files are in place, you can install the NodeJS packages using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$~ \/usr\/sbin\/cloudlinux-selector&nbsp; install-modules --json --interpreter=nodejs --app-root=&lt;APP_ROOT&gt;<\/pre>\n\n\n\n<p>Where the variable APP_ROOT is the directory where you want to install your application. Example : \/home\/user\/applicationnode1.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Actions on Application in Command Line<\/h2>\n\n\n\n<p>It is possible to start, stop or restart an application, and much more. You just have to enter the appropriate command:<\/p>\n\n\n\n<p><strong>&#8211; To start :<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$~ \/usr\/sbin\/cloudlinux-selector (start) --json --interpreter=nodejs --app-root=&lt;APP_ROOT&gt;<\/pre>\n\n\n\n<p><strong>&#8211; To stop :<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$~ \/usr\/sbin\/cloudlinux-selector (stop | destroy) --json --interpreter=nodejs --app-root=&lt;APP_ROOT&gt;<\/pre>\n\n\n\n<p><strong>&#8211; To restart :<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$~ \/usr\/sbin\/cloudlinux-selector (restart) --json --interpreter=nodejs --app-root=&lt;APP_ROOT&gt;<\/pre>\n\n\n\n<p><strong>&#8211; To destroy :<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$~ \/usr\/sbin\/cloudlinux-selector (destroy) --json --interpreter=nodejs --app-root=&lt;APP_ROOT&gt;<\/pre>\n\n\n\n<p>It is also possible to execute scripts that are recorded at the package.json level:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$~ \/usr\/sbin\/cloudlinux-selector run-script --json --interpreter=nodejs --app-root=&lt;APP_ROOT&gt; --script name=&lt;SCRIPT_NAME&gt; -- --&lt;OPTION_1&gt; &lt;ARG1&gt; &lt;ARG2&gt;<\/pre>\n\n\n\n<p>Where the following variables are use:<\/p>\n\n\n\n<p><strong>SCRIPT_NAME :<\/strong> the name of the script in your package.json.<\/p>\n\n\n\n<p><strong>OPTION_1, ARG1 et ARG2 :<\/strong> script arguments.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"deconnexion-en-ligne-de-commande\">Command Line Logout<\/h2>\n\n\n\n<p>To logout, enter the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">exit<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">How to Transfer Logs to N0C Storage<\/h2>\n\n\n\n<p>If you wish to transfer logs from a NodeJS application to N0C Storage, please refer to this JavaScript script: <a href=\"https:\/\/github.com\/PlanetHoster\/transfer-logs-to-n0c-storage-demo\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/PlanetHoster\/transfer-logs-to-n0c-storage-demo<\/a>.<\/p>\n\n\n\n<p>By transferring logs from your server to N0C Storage, you save space and avoid cluttering up your SSD, while keeping your logs accessible.<\/p>\n\n\n\n<p>This script can be used as a starting point for more complex scripts, or integrated directly into an application. In the example used in the script, a cron job is set up to run the script twice a day.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Essentially, Node.js is code written in JavaScript that is running on a PlanetHoster server allowing  you to host, create and control web applications using this type of langage.<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[163],"ht-kb-tag":[320,319,259,447,317,391],"class_list":["post-1655","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-languages","ht_kb_tag-application","ht_kb_tag-javascript-2","ht_kb_tag-language","ht_kb_tag-nextjs","ht_kb_tag-node-js-2","ht_kb_tag-nuxt-js"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Manage Node.js Applications<\/title>\n<meta name=\"description\" content=\"Node.js is code running on our servers, enabling us to host, create and control web applications using this language.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/nodejs-application-management\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Manage Node.js Applications\" \/>\n<meta property=\"og:description\" content=\"Node.js is code running on our servers, enabling us to host, create and control web applications using this language.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.n0c.com\/en\/knowledge-base\/nodejs-application-management\/\" \/>\n<meta property=\"og:site_name\" content=\"N0C KB\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-06T19:37:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage.png\" \/>\n\t<meta property=\"og:image:width\" content=\"586\" \/>\n\t<meta property=\"og:image:height\" content=\"187\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/nodejs-application-management\\\/\",\"url\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/nodejs-application-management\\\/\",\"name\":\"How to Manage Node.js Applications\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/nodejs-application-management\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/nodejs-application-management\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kb.n0c.com\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/Langages_debogage.png\",\"datePublished\":\"2020-11-11T21:16:32+00:00\",\"dateModified\":\"2026-02-06T19:37:16+00:00\",\"description\":\"Node.js is code running on our servers, enabling us to host, create and control web applications using this language.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/nodejs-application-management\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/nodejs-application-management\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/nodejs-application-management\\\/#primaryimage\",\"url\":\"https:\\\/\\\/kb.n0c.com\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/Langages_debogage.png\",\"contentUrl\":\"https:\\\/\\\/kb.n0c.com\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/Langages_debogage.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/nodejs-application-management\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/kb.n0c.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\\\/\\\/kb.n0c.com\\\/en\\\/knowledge-base\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Manage Node.js Applications\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kb.n0c.com\\\/#website\",\"url\":\"https:\\\/\\\/kb.n0c.com\\\/\",\"name\":\"N0C KB\",\"description\":\"Official documentation of the N0C hosting platform\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kb.n0c.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Manage Node.js Applications","description":"Node.js is code running on our servers, enabling us to host, create and control web applications using this language.","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:\/\/kb.n0c.com\/en\/knowledge-base\/nodejs-application-management\/","og_locale":"en_US","og_type":"article","og_title":"How to Manage Node.js Applications","og_description":"Node.js is code running on our servers, enabling us to host, create and control web applications using this language.","og_url":"https:\/\/kb.n0c.com\/en\/knowledge-base\/nodejs-application-management\/","og_site_name":"N0C KB","article_modified_time":"2026-02-06T19:37:16+00:00","og_image":[{"width":586,"height":187,"url":"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/nodejs-application-management\/","url":"https:\/\/kb.n0c.com\/en\/knowledge-base\/nodejs-application-management\/","name":"How to Manage Node.js Applications","isPartOf":{"@id":"https:\/\/kb.n0c.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/nodejs-application-management\/#primaryimage"},"image":{"@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/nodejs-application-management\/#primaryimage"},"thumbnailUrl":"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage.png","datePublished":"2020-11-11T21:16:32+00:00","dateModified":"2026-02-06T19:37:16+00:00","description":"Node.js is code running on our servers, enabling us to host, create and control web applications using this language.","breadcrumb":{"@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/nodejs-application-management\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.n0c.com\/en\/knowledge-base\/nodejs-application-management\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/nodejs-application-management\/#primaryimage","url":"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage.png","contentUrl":"https:\/\/kb.n0c.com\/wp-content\/uploads\/2021\/12\/Langages_debogage.png"},{"@type":"BreadcrumbList","@id":"https:\/\/kb.n0c.com\/en\/knowledge-base\/nodejs-application-management\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/kb.n0c.com\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/kb.n0c.com\/en\/knowledge-base\/"},{"@type":"ListItem","position":3,"name":"How to Manage Node.js Applications"}]},{"@type":"WebSite","@id":"https:\/\/kb.n0c.com\/#website","url":"https:\/\/kb.n0c.com\/","name":"N0C KB","description":"Official documentation of the N0C hosting platform","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.n0c.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb\/1655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/comments?post=1655"}],"version-history":[{"count":129,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb\/1655\/revisions"}],"predecessor-version":[{"id":22100,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb\/1655\/revisions\/22100"}],"wp:attachment":[{"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/media?parent=1655"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb-category?post=1655"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.n0c.com\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=1655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}