Problem
JavaScript code not running on Brackets.
Error Message
/bin/sh: node: command not found
Program exited with status code of 127
Root Cause
Brackets cannot find node binary file.
Solution
Open terminal and type the following commands and note the addressed returned:
which node
which npm
Click on Node.js > Configuration… from the main menu. Then copy/paste the paths to binary files you retrieved in the command line. For example:
Path to Node binary:
/usr/local/bin/node
Path to NPM binary:
/usr/local/bin/npm
Save and run your code again.