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

conflict with npm 3 and other dependency

targos opened this issue · comments

  • Among my dependencies, I have canvas and babel-istanbul.
  • babel-istanbul depends on which
  • canvas uses the which command in a shell script
  • because of npm 3's flat structure, the which module is run instead of the builtin command and the check fails.

Output of the script with builtin (OSX 10.11.1):

true

Output of the script with which module:

not found: ldconfig
true

Version 1.2.0 changed the output so that it's identical to the output of the BSD builtin which(1). If babel-istanbul upgrades to the latest version of which, then this problem will go away.

👍 thanks!