{"action":"created","issue":{"url":"https://api.github.com/repos/npm/node-which/issues/21","labels_url":"https://api.github.com/repos/npm/node-which/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/npm/node-which/issues/21/comments","events_url":"https://api.github.com/repos/npm/node-which/issues/21/events","html_url":"https://github.com/npm/node-which/issues/21","id":113903653,"number":21,"title":"conflict with npm 3 and other dependency","user":{"login":"targos","id":2352663,"avatar_url":"https://avatars.githubusercontent.com/u/2352663?v=3","gravatar_id":"","url":"https://api.github.com/users/targos","html_url":"https://github.com/targos","followers_url":"https://api.github.com/users/targos/followers","following_url":"https://api.github.com/users/targos/following{/other_user}","gists_url":"https://api.github.com/users/targos/gists{/gist_id}","starred_url":"https://api.github.com/users/targos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/targos/subscriptions","organizations_url":"https://api.github.com/users/targos/orgs","repos_url":"https://api.github.com/users/targos/repos","events_url":"https://api.github.com/users/targos/events{/privacy}","received_events_url":"https://api.github.com/users/targos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-28T19:27:56Z","updated_at":"2015-10-28T21:30:41Z","closed_at":"2015-10-28T21:19:43Z","body":"* Among my dependencies, I have `canvas` and `babel-istanbul`.\r\n* babel-istanbul [depends on which](https://github.com/ambitioninc/babel-istanbul/blob/1e240415d3804dcd682ab07566cf8c01fd83d830/package.json#L104)\r\n* canvas uses the `which` command in a [shell script](https://github.com/Automattic/node-canvas/blob/master/util/has_lib.sh#L10)\r\n* because of npm 3's flat structure, the `which` module is run instead of the builtin command and the check fails.\r\n\r\nOutput of the script with builtin (OSX 10.11.1):\r\n```\r\ntrue\r\n```\r\n\r\nOutput of the script with `which` module:\r\n```\r\nnot found: ldconfig\r\ntrue\r\n```"},"comment":{"url":"https://api.github.com/repos/npm/node-which/issues/comments/151998068","html_url":"https://github.com/npm/node-which/issues/21#issuecomment-151998068","issue_url":"https://api.github.com/repos/npm/node-which/issues/21","id":151998068,"user":{"login":"targos","id":2352663,"avatar_url":"https://avatars.githubusercontent.com/u/2352663?v=3","gravatar_id":"","url":"https://api.github.com/users/targos","html_url":"https://github.com/targos","followers_url":"https://api.github.com/users/targos/followers","following_url":"https://api.github.com/users/targos/following{/other_user}","gists_url":"https://api.github.com/users/targos/gists{/gist_id}","starred_url":"https://api.github.com/users/targos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/targos/subscriptions","organizations_url":"https://api.github.com/users/targos/orgs","repos_url":"https://api.github.com/users/targos/repos","events_url":"https://api.github.com/users/targos/events{/privacy}","received_events_url":"https://api.github.com/users/targos/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T21:30:41Z","updated_at":"2015-10-28T21:30:41Z","body":":+1: thanks!"}}