Problems getting JSX Hint linter to work


I get this error when I try to run JSX Hint linter on a file:

Error: Command failed: /bin/sh -c ATOM_SHELL_INTERNAL_RUN_AS_NODE=1 '/Applications/ Helper' /Users/ben/.atom/packages/language-jsx/node_modules/jsx/bin/jsx --run 

process.env.PATH outputs


which jsxhint gives:


What am I doing wrong?


On OS X when you launch from the command-line, it inherits a different environment than when you launch from an icon (or from Spotlight, etc). For a more detailed explanation, see this question:


When I start atom from the command line I still get the error.

Now my PATH is