{"action":"created","issue":{"url":"https://api.github.com/repos/othree/tern-coffee/issues/3","labels_url":"https://api.github.com/repos/othree/tern-coffee/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/othree/tern-coffee/issues/3/comments","events_url":"https://api.github.com/repos/othree/tern-coffee/issues/3/events","html_url":"https://github.com/othree/tern-coffee/issues/3","id":58881735,"number":3,"title":"Node modules directory incorrect in coffee.js","user":{"login":"katspaugh","id":381895,"avatar_url":"https://avatars.githubusercontent.com/u/381895?v=3","gravatar_id":"","url":"https://api.github.com/users/katspaugh","html_url":"https://github.com/katspaugh","followers_url":"https://api.github.com/users/katspaugh/followers","following_url":"https://api.github.com/users/katspaugh/following{/other_user}","gists_url":"https://api.github.com/users/katspaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/katspaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katspaugh/subscriptions","organizations_url":"https://api.github.com/users/katspaugh/orgs","repos_url":"https://api.github.com/users/katspaugh/repos","events_url":"https://api.github.com/users/katspaugh/events{/privacy}","received_events_url":"https://api.github.com/users/katspaugh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-25T10:36:15Z","updated_at":"2015-02-25T15:37:56Z","closed_at":"2015-02-25T14:35:08Z","body":"The plugin assumes the location of the coffee-script module [here](https://github.com/othree/tern-coffee/blob/master/coffee.js#L8):\r\n\r\n```\r\n      require('./node_modules/coffee-script/lib/coffee-script/lexer'),\r\n      require('./node_modules/coffee-script/lib/coffee-script/parser')\r\n```\r\n\r\nThis is not where the `node_modules` directory can be found on my system. I think, it's better to require a path, relative to the npm module, like this:\r\n\r\n```\r\n      require('coffee-script/lib/coffee-script/lexer'),\r\n      require('coffee-script/lib/coffee-script/parser')\r\n```"},"comment":{"url":"https://api.github.com/repos/othree/tern-coffee/issues/comments/75982138","html_url":"https://github.com/othree/tern-coffee/issues/3#issuecomment-75982138","issue_url":"https://api.github.com/repos/othree/tern-coffee/issues/3","id":75982138,"user":{"login":"katspaugh","id":381895,"avatar_url":"https://avatars.githubusercontent.com/u/381895?v=3","gravatar_id":"","url":"https://api.github.com/users/katspaugh","html_url":"https://github.com/katspaugh","followers_url":"https://api.github.com/users/katspaugh/followers","following_url":"https://api.github.com/users/katspaugh/following{/other_user}","gists_url":"https://api.github.com/users/katspaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/katspaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katspaugh/subscriptions","organizations_url":"https://api.github.com/users/katspaugh/orgs","repos_url":"https://api.github.com/users/katspaugh/repos","events_url":"https://api.github.com/users/katspaugh/events{/privacy}","received_events_url":"https://api.github.com/users/katspaugh/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T15:37:56Z","updated_at":"2015-02-25T15:37:56Z","body":"But the suggested change does work with coffee-script installed via `npm install` in the tern-coffee directory."}}