{"action":"created","issue":{"url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/117","labels_url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/117/comments","events_url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/117/events","html_url":"https://github.com/browserify-rails/browserify-rails/issues/117","id":110784954,"number":117,"title":"OS X 10.11 - El Capitan - env: node: No such file or directory","user":{"login":"noelblaschke","id":3802080,"avatar_url":"https://avatars.githubusercontent.com/u/3802080?v=3","gravatar_id":"","url":"https://api.github.com/users/noelblaschke","html_url":"https://github.com/noelblaschke","followers_url":"https://api.github.com/users/noelblaschke/followers","following_url":"https://api.github.com/users/noelblaschke/following{/other_user}","gists_url":"https://api.github.com/users/noelblaschke/gists{/gist_id}","starred_url":"https://api.github.com/users/noelblaschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noelblaschke/subscriptions","organizations_url":"https://api.github.com/users/noelblaschke/orgs","repos_url":"https://api.github.com/users/noelblaschke/repos","events_url":"https://api.github.com/users/noelblaschke/events{/privacy}","received_events_url":"https://api.github.com/users/noelblaschke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-10T09:53:52Z","updated_at":"2015-11-23T10:56:05Z","closed_at":"2015-11-23T10:56:05Z","body":"Following the instruction throws a BrowserifyRails::BrowserifyError on a clean El Capitan installation:\r\n\r\n```\r\n=> env: node: No such file or directory\r\n```\r\n\r\n\r\nChanging the shebang from\r\n```\r\n#!/usr/bin/env node\r\n```\r\nto:\r\n```\r\n#!/usr/local/bin/node\r\n```\r\n\r\nin project/node_modules/.bin/browserify and project/node_modules/.bin/browserifyinc will do the thing.\r\n\r\nAnyway this shouldn't be the best solution. So what am I doing wrong?\r\n\r\nI used Homebrew to install node with:\r\n```\r\n$ brew update\r\n$ brew install node\r\n```\r\n\r\nAs of El Capitan /usr/bin/ is now rootless, so Homebrew creates symlinks at /usr/local/bin. I already added /usr/local/bin to my $PATH and this is also available in /usr/bin/env.\r\n\r\n```\r\n$ /usr/bin/env\r\n...\r\n=> PATH=...:/usr/local/bin:...\r\n... \r\n\r\n$ which node\r\n=> /usr/local/bin/node\r\n```\r\n\r\nBest regards"},"comment":{"url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/comments/158904077","html_url":"https://github.com/browserify-rails/browserify-rails/issues/117#issuecomment-158904077","issue_url":"https://api.github.com/repos/browserify-rails/browserify-rails/issues/117","id":158904077,"user":{"login":"cymen","id":121034,"avatar_url":"https://avatars.githubusercontent.com/u/121034?v=3","gravatar_id":"","url":"https://api.github.com/users/cymen","html_url":"https://github.com/cymen","followers_url":"https://api.github.com/users/cymen/followers","following_url":"https://api.github.com/users/cymen/following{/other_user}","gists_url":"https://api.github.com/users/cymen/gists{/gist_id}","starred_url":"https://api.github.com/users/cymen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cymen/subscriptions","organizations_url":"https://api.github.com/users/cymen/orgs","repos_url":"https://api.github.com/users/cymen/repos","events_url":"https://api.github.com/users/cymen/events{/privacy}","received_events_url":"https://api.github.com/users/cymen/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T10:56:05Z","updated_at":"2015-11-23T10:56:05Z","body":"(please reopen if this is still an issue)"}}