npm / node-which

Like which(1) unix command. Find the first instance of an executable in the PATH.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

isExe only returns true when everyone has execute on the binary.

ajcrowe opened this issue · comments

Command returns not found when everyone doesn't have execute

eg:

-rwxr-x--- 1 root webapps     463 Dec 13 12:18 compass
$ node node_modules/.bin/which compass
not found: compass
$ chmod 755 compass
$ node node_modules/.bin/which compass
/usr/local/bin/compass

version: 1.0.5
os: debian wheezy

This works fine for me. Are you perhaps not in the webapps group, or not the root user?