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

Using against command does not work as expected

flamestream opened this issue · comments

On 1.1.1, the following use case does not work:

require('which').sync('compass');

It would seem that the new logic treats command search as absolute path and therefore won't look in the pathenv.

Works for me. Is it still a problem for you on the latest release?