{"id":86,"date":"2025-10-29T16:16:44","date_gmt":"2025-10-29T16:16:44","guid":{"rendered":"https:\/\/www.jolt.co.uk\/kb\/out-of-memory-error-with-node-js-and-cpanel-terminal\/"},"modified":"2025-10-29T16:16:44","modified_gmt":"2025-10-29T16:16:44","slug":"out-of-memory-error-with-node-js-and-cpanel-terminal","status":"publish","type":"post","link":"https:\/\/www.jolt.co.uk\/help\/out-of-memory-error-with-node-js-and-cpanel-terminal\/","title":{"rendered":"Out of memory error with Node.js and cPanel Terminal"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Description<\/h2>\n\n\n\n<p>When running a <code>npm<\/code> or Node.js command via the <strong>Terminal app<\/strong> in cPanel, a &#8220;Out of memory&#8221; error message is returned. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"263\" src=\"https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/10\/image-5-1024x263.png\" alt=\"\" class=\"wp-image-87\" srcset=\"https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/10\/image-5-1024x263.png 1024w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/10\/image-5-300x77.png 300w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/10\/image-5-768x197.png 768w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/10\/image-5-770x197.png 770w, https:\/\/kb.jolt.co.uk\/wp-content\/uploads\/sites\/5\/2025\/10\/image-5.png 1365w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Cause<\/h2>\n\n\n\n<p>The issue is <strong>not<\/strong> typically due to a hosting-level resource limit such as memory or storage. <\/p>\n\n\n\n<p>The emulated Terminal app in cPanel itself has an artificial memory limit that prevents the command from running<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solution<\/h2>\n\n\n\n<p>Connect directly to SSH using your native SSH client (e.g. Terminal on macOS or Linux or PuTTY on Windows) to overcome the Terminal app&#8217;s memory limit.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description When running a npm or Node.js command via the Terminal app in cPanel, a &#8220;Out of memory&#8221; error message is returned. Cause The issue is not typically due to a hosting-level resource limit such as memory or storage. The emulated Terminal app in cPanel itself has an artificial memory&hellip;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,3,10],"tags":[],"class_list":["post-86","post","type-post","status-publish","format-standard","hentry","category-advanced-techniques","category-cpanel","category-node-js"],"_links":{"self":[{"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/posts\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/comments?post=86"}],"version-history":[{"count":1,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/posts\/86\/revisions"}],"predecessor-version":[{"id":88,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/posts\/86\/revisions\/88"}],"wp:attachment":[{"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/media?parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/categories?post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jolt.co.uk\/help\/wp-json\/wp\/v2\/tags?post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}