{"id":13834,"date":"2024-08-29T09:29:41","date_gmt":"2024-08-29T09:29:41","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=docs&#038;p=13834"},"modified":"2024-08-29T09:29:42","modified_gmt":"2024-08-29T09:29:42","password":"","slug":"how-to-install-nodejs-on-cyberpanel-ubuntu-server","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\/","title":{"rendered":"How to install Nodejs on Cyberpanel Ubuntu Server"},"content":{"rendered":"\n<p>To install nodejs on Cyberpanel, follow the steps below.<\/p>\n\n\n\n<p><strong>Step 1: Update the system<\/strong><\/p>\n\n\n\n<p><code>sudo apt -y update <\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"606\" height=\"90\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-26.png\" alt=\"\" class=\"wp-image-13835\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-26.png 606w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-26-300x45.png 300w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/figure>\n\n\n\n<p>Then run <\/p>\n\n\n\n<p><code>apt-get install nodejs npm<\/code><\/p>\n\n\n\n<p>The above will install the default nodejs that ships with the OS.<\/p>\n\n\n\n<p>To install a Specific version, follow the steps below.<\/p>\n\n\n\n<p>Visit this link: <a href=\"https:\/\/github.com\/nodesource\/distributions\">https:\/\/github.com\/nodesource\/distributions<\/a> and check for available versions.<\/p>\n\n\n\n<p>In my case, I&#8217;ll use Node 22. <\/p>\n\n\n\n<p><strong>Step 2 : Install curl if not available<\/strong><\/p>\n\n\n\n<p><code>sudo apt-get install -y curl<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"712\" height=\"96\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-27.png\" alt=\"\" class=\"wp-image-13836\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-27.png 712w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-27-300x40.png 300w\" sizes=\"auto, (max-width: 712px) 100vw, 712px\" \/><\/figure>\n\n\n\n<p><strong>Step 3: Download the setup script:<\/strong><\/p>\n\n\n\n<p><code>curl -fsSL https:\/\/deb.nodesource.com\/setup_22.x -o nodesource_setup.sh<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"875\" height=\"73\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-28.png\" alt=\"\" class=\"wp-image-13837\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-28.png 875w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-28-300x25.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-28-768x64.png 768w\" sizes=\"auto, (max-width: 875px) 100vw, 875px\" \/><\/figure>\n\n\n\n<p><strong>Step 4: Run the setup script with sudo:<\/strong><\/p>\n\n\n\n<p><code>sudo -E bash nodesource_setup.sh<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"821\" height=\"146\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-29.png\" alt=\"\" class=\"wp-image-13838\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-29.png 821w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-29-300x53.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-29-768x137.png 768w\" sizes=\"auto, (max-width: 821px) 100vw, 821px\" \/><\/figure>\n\n\n\n<p>Final message should be as below when the setup script completes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"849\" height=\"91\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-30.png\" alt=\"\" class=\"wp-image-13839\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-30.png 849w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-30-300x32.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-30-768x82.png 768w\" sizes=\"auto, (max-width: 849px) 100vw, 849px\" \/><\/figure>\n\n\n\n<p><strong>Step 5: Install Node.js:<\/strong><\/p>\n\n\n\n<p><code>sudo apt-get install -y nodejs<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"81\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-31.png\" alt=\"\" class=\"wp-image-13840\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-31.png 721w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-31-300x34.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/figure>\n\n\n\n<p><strong>Step 6: Verify the installation:<\/strong><\/p>\n\n\n\n<p><code>node -v<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"67\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-32.png\" alt=\"\" class=\"wp-image-13841\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-32.png 480w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-32-300x42.png 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/figure>\n\n\n\n<p>That&#8217;s It. You&#8217;re all done. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>To install nodejs on Cyberpanel, follow the steps below. Step 1: Update the system sudo apt -y update Then run apt-get install nodejs npm The above will install the default nodejs that ships with the OS. To install a Specific version, follow the steps below. Visit this link: https:\/\/github.com\/nodesource\/distributions and check for available versions. In [&hellip;]<\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[2121],"doc_tag":[],"class_list":["post-13834","docs","type-docs","status-publish","hentry","doc_category-cyberpanel"],"year_month":"2026-07","word_count":135,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Kibera","author_nicename":"dan-k","author_url":"https:\/\/truehost.com\/support\/author\/dan-k\/"},"doc_category_info":[{"term_name":"Cyberpanel","term_url":"https:\/\/truehost.com\/support\/docs-category\/cyberpanel\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to install Nodejs on Cyberpanel Ubuntu Server -<\/title>\n<meta name=\"description\" content=\"Node.js is a JavaScript runtime environment that lets developers create servers, web apps. Follow steps to install on cyberpanel ...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install Nodejs on Cyberpanel Ubuntu Server -\" \/>\n<meta property=\"og:description\" content=\"Node.js is a JavaScript runtime environment that lets developers create servers, web apps. Follow steps to install on cyberpanel ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-29T09:29:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-26.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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\\\/\",\"name\":\"How to install Nodejs on Cyberpanel Ubuntu Server -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/image-26.png\",\"datePublished\":\"2024-08-29T09:29:41+00:00\",\"dateModified\":\"2024-08-29T09:29:42+00:00\",\"description\":\"Node.js is a JavaScript runtime environment that lets developers create servers, web apps. Follow steps to install on cyberpanel ...\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/image-26.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/image-26.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install Nodejs on Cyberpanel Ubuntu Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install Nodejs on Cyberpanel Ubuntu Server -","description":"Node.js is a JavaScript runtime environment that lets developers create servers, web apps. Follow steps to install on cyberpanel ...","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:\/\/truehost.com\/support\/knowledge-base\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\/","og_locale":"en_US","og_type":"article","og_title":"How to install Nodejs on Cyberpanel Ubuntu Server -","og_description":"Node.js is a JavaScript runtime environment that lets developers create servers, web apps. Follow steps to install on cyberpanel ...","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\/","article_modified_time":"2024-08-29T09:29:42+00:00","og_image":[{"url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-26.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\/","name":"How to install Nodejs on Cyberpanel Ubuntu Server -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\/#primaryimage"},"image":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-26.png","datePublished":"2024-08-29T09:29:41+00:00","dateModified":"2024-08-29T09:29:42+00:00","description":"Node.js is a JavaScript runtime environment that lets developers create servers, web apps. Follow steps to install on cyberpanel ...","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\/#primaryimage","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-26.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-26.png"},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-install-nodejs-on-cyberpanel-ubuntu-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to install Nodejs on Cyberpanel Ubuntu Server"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/13834","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=13834"}],"version-history":[{"count":1,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/13834\/revisions"}],"predecessor-version":[{"id":13842,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/13834\/revisions\/13842"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=13834"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=13834"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=13834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}