Brackets /bin/sh: node: command not found


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.


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:

Path to NPM binary:

Save and run your code again.