{"id":659,"date":"2021-11-15T15:34:45","date_gmt":"2021-11-15T20:34:45","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=659"},"modified":"2024-02-08T08:40:39","modified_gmt":"2024-02-08T13:40:39","slug":"brackets-bin-sh-node-command-not-found","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/brackets-bin-sh-node-command-not-found\/","title":{"rendered":"Brackets \/bin\/sh: node: command not found"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Problem<\/h3>\n\n\n\n<p>JavaScript code not running on Brackets.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Error Message<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>\/bin\/sh: node: command not found\nProgram exited with status code of 127\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Root Cause<\/h3>\n\n\n\n<p>Brackets cannot find node binary file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Solution<\/h3>\n\n\n\n<p>Open terminal and type the following commands and note the addressed returned:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>which node\nwhich npm\n<\/code><\/pre>\n\n\n\n<p>Click on Node.js &gt; Configuration&#8230; from the main menu. Then copy\/paste the paths to binary files you retrieved in the command line. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Path to Node binary:\n\/usr\/local\/bin\/node\n\nPath to NPM binary:\n\/usr\/local\/bin\/npm\n<\/code><\/pre>\n\n\n\n<p>Save and run your code again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem JavaScript code not running on Brackets. Error Message Root Cause Brackets cannot find node binary file. Solution Open terminal and type the following commands and note the addressed returned: Click on Node.js &gt; Configuration&#8230; from the main menu. Then copy\/paste the paths to binary files you retrieved in the command line. For example: Save [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[230],"tags":[],"class_list":["post-659","post","type-post","status-publish","format-standard","hentry","category-qa"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=659"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/659\/revisions"}],"predecessor-version":[{"id":660,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/659\/revisions\/660"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}