{"id":7260,"date":"2026-01-08T11:10:44","date_gmt":"2026-01-08T11:10:44","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=7260"},"modified":"2026-01-08T11:10:44","modified_gmt":"2026-01-08T11:10:44","slug":"how-to-select-the-node-js-version-for-your-application","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-select-the-node-js-version-for-your-application\/","title":{"rendered":"How to select the Node.js version for your application"},"content":{"rendered":"<p data-renderer-start-pos=\"66\" data-local-id=\"23f83bad-6d68-428e-87c2-a3769d54fcf0\">When deploying a Node.js application on Hostinger, you can choose which <strong data-renderer-mark=\"true\">Node.js version<\/strong> your application will run on. Selecting the correct Node.js version is important, as it directly affects how your application builds and runs.<\/p><p data-renderer-start-pos=\"298\" data-local-id=\"876bc976-2d57-46ee-a756-da5ab6f2ae2d\">Hostinger supports the following Node.js versions during deployment:<\/p><ul class=\"ak-ul\" data-local-id=\"fd3d3b56-e615-4e25-9e7f-7e691a37dd52\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"370\" data-local-id=\"69151129-3c68-4c86-8a6a-147278999c2f\"><strong data-renderer-mark=\"true\">18.x<\/strong><\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"378\" data-local-id=\"2e752ca7-3186-4d92-b81e-43105d558738\"><strong data-renderer-mark=\"true\">20.x<\/strong><\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"386\" data-local-id=\"aae37da9-12cf-4c3e-88cb-865a47f161cd\"><strong data-renderer-mark=\"true\">22.x<\/strong><\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"394\" data-local-id=\"53caa572-6990-4007-89b3-ab01f73399fd\"><strong data-renderer-mark=\"true\">24.x<\/strong><\/p>\n<\/li>\n<\/ul><p data-renderer-start-pos=\"402\" data-local-id=\"fcc897af-b75d-4393-bed9-bfec608601c5\">By default, Hostinger attempts to <strong data-renderer-mark=\"true\">automatically detect<\/strong> the Node.js version your application uses. You can override this selection if needed.<\/p><h3 id=\"how-nodejs-version-detection-works\" class=\"text-text-100 mt-2 -mb-1 text-base font-bold\">How Node.js version detection works<\/h3><p class=\"font-claude-response-body break-words whitespace-normal leading-[1.7]\">When you connect a GitHub repository or upload your application files, Hostinger automatically analyzes your project to detect the Node.js version based on:<\/p><ul class=\"[li_&amp;]:mb-0 [li_&amp;]:mt-1.5 [li_&amp;]:gap-1.5 [&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc flex flex-col gap-2 pl-8 mb-3\">\n<li class=\"whitespace-normal break-words pl-2\">The <strong>engines<\/strong> field in your <strong>package.json<\/strong> file<\/li>\n<li class=\"whitespace-normal break-words pl-2\">Lockfile compatibility<\/li>\n<li class=\"whitespace-normal break-words pl-2\">Project structure and dependencies<\/li>\n<\/ul><p class=\"font-claude-response-body break-words whitespace-normal leading-[1.7]\">If a compatible version is detected, it will be preselected during the deployment settings step.<\/p><p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7261\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/01\/Screenshot-2026-01-07-at-14.25.31.png\" alt=\"\" width=\"1666\" height=\"1283\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/01\/Screenshot-2026-01-07-at-14.25.31.png 1666w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/01\/Screenshot-2026-01-07-at-14.25.31-300x231.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/01\/Screenshot-2026-01-07-at-14.25.31-1024x789.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/01\/Screenshot-2026-01-07-at-14.25.31-768x591.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/01\/Screenshot-2026-01-07-at-14.25.31-1536x1183.png 1536w\" sizes=\"auto, (max-width: 1666px) 100vw, 1666px\" \/><\/p><h3 id=\"how-to-select-nodejs-version-manually\" class=\"text-text-100 mt-2 -mb-1 text-base font-bold\">How to select a Node.js version manually<\/h3><p class=\"font-claude-response-body break-words whitespace-normal leading-[1.7]\">You can manually choose a Node.js version during deployment if you want to upgrade or downgrade Node.js, or if automatic detection selected a different version than expected.<\/p><p class=\"font-claude-response-body break-words whitespace-normal leading-[1.7]\"><strong>To select a Node.js version:<\/strong><\/p><ol class=\"[li_&amp;]:mb-0 [li_&amp;]:mt-1.5 [li_&amp;]:gap-1.5 [&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-decimal flex flex-col gap-2 pl-8 mb-3\">\n<li class=\"whitespace-normal break-words pl-2\">Start the Node.js application deployment process<\/li>\n<li class=\"whitespace-normal break-words pl-2\">Navigate to the <strong>Deployment settings<\/strong> step<\/li>\n<li class=\"whitespace-normal break-words pl-2\">Locate the <strong>Node.js version<\/strong> selector<\/li>\n<li class=\"whitespace-normal break-words pl-2\">Choose one of the available versions: <strong>18.x<\/strong>, <strong>20.x<\/strong>, <strong>22.x<\/strong>, or <strong>24.x<br>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7263\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/01\/image-20260107-122631.png\" alt=\"\" width=\"1666\" height=\"1283\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/01\/image-20260107-122631.png 1666w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/01\/image-20260107-122631-300x231.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/01\/image-20260107-122631-1024x789.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/01\/image-20260107-122631-768x591.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/01\/image-20260107-122631-1536x1183.png 1536w\" sizes=\"auto, (max-width: 1666px) 100vw, 1666px\" \/><br>\n<\/strong><\/li>\n<li class=\"whitespace-normal break-words pl-2\">Continue with the deployment<\/li>\n<\/ol><h3 id=\"impact-of-changing-nodejs-version\" class=\"text-text-100 mt-2 -mb-1 text-base font-bold\">Impact of changing the Node.js version<\/h3><p class=\"font-claude-response-body break-words whitespace-normal leading-[1.7]\">Changing the Node.js version can affect the build and runtime behavior of your application.<\/p><p class=\"font-claude-response-body break-words whitespace-normal leading-[1.7]\">Be aware of the following:<\/p><ul class=\"[li_&amp;]:mb-0 [li_&amp;]:mt-1.5 [li_&amp;]:gap-1.5 [&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc flex flex-col gap-2 pl-8 mb-3\">\n<li class=\"whitespace-normal break-words pl-2\">Some dependencies may not support newer Node.js versions.<\/li>\n<li class=\"whitespace-normal break-words pl-2\">Native modules may fail to compile on incompatible versions.<\/li>\n<li class=\"whitespace-normal break-words pl-2\">Build scripts may behave differently across versions.<\/li>\n<li class=\"whitespace-normal break-words pl-2\">Your application may fail to start if the selected version is unsupported.<\/li>\n<\/ul><div class=\"intercom-interblocks-callout\" style=\"background-color: #feedaf80;border-color: #fbc91633\"><strong>NOTE<\/strong>: If your deployment fails after changing the Node.js version, revert to the automatically detected version and redeploy.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Choose or change the Node.js version when deploying your application on Hostinger<\/p>\n","protected":false},"author":594,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[301],"tags":[],"class_list":["post-7260","post","type-post","status-publish","format-standard","hentry","category-node-js"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/how-to-select-the-node-js-version-for-your-application","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/7260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/594"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=7260"}],"version-history":[{"count":2,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/7260\/revisions"}],"predecessor-version":[{"id":7265,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/7260\/revisions\/7265"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=7260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=7260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=7260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}