Sublime Forum

OSX Sublime Not Executing Binary In Path

#1

Hi all:

I’m trying to exec jshint on save, however:

ST Error:

[Errno 2] No such file or directory: 'jshint'
[cmd: ['jshint', '/Users/cdieringer/node/ampersand-floatinglabel-input-view/gulpfile.js', '--reporter', '/Users/cdieringer/Library/Application Support/Sublime Text 3/Packages/JSHint/reporter.js']]
[dir: /Users/cdieringer/node/ampersand-floatinglabel-input-view]
[path: /usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/MacGPG2/bin:/usr/local:/Users/cdieringer/.npm-packages/bin]
[Finished]

Note how it shows the path. Specifically, /Users/cdieringer/.npm-packages/bin is listed at the end. The underlined folder has the executable in it, and perms all have at least read and write on them.

cdieringer@Snapper-osx:~/Desktop$ ls /Users/cdieringer/.npm-packages/bin
_mocha		grunt		httpster	mocha		node-inspector
beefy		gulp		jshint		node-debug	npm

Running the full command seems to work!

jshint /Users/cdieringer/node/ampersand-floatinglabel-input-view/gulpfile.js --reporter /Users/cdieringer/Library/Application\ Support/Sublime\ Text\ 3/Packages/JSHint/reporter.js

Any tips?

0 Likes