Problems getting JSX Hint linter to work


#1

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/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper' /Users/ben/.atom/packages/language-jsx/node_modules/jsx/bin/jsx --run 

process.env.PATH outputs

/Users/ben/local/bin:/Users/ben/local/bin:/Users/ben/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin

which jsxhint gives:

/Users/ben/local/bin/jsxhint

What am I doing wrong?


#2

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 superuser.com question:


#3

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

Now my PATH is

/usr/bin:/bin:/usr/sbin:/sbin