{"action":"opened","issue":{"url":"https://api.github.com/repos/aheckmann/gm/issues/474","labels_url":"https://api.github.com/repos/aheckmann/gm/issues/474/labels{/name}","comments_url":"https://api.github.com/repos/aheckmann/gm/issues/474/comments","events_url":"https://api.github.com/repos/aheckmann/gm/issues/474/events","html_url":"https://github.com/aheckmann/gm/issues/474","id":118800944,"number":474,"title":"browserify gm","user":{"login":"mt-sergio","id":15603855,"avatar_url":"https://avatars.githubusercontent.com/u/15603855?v=3","gravatar_id":"","url":"https://api.github.com/users/mt-sergio","html_url":"https://github.com/mt-sergio","followers_url":"https://api.github.com/users/mt-sergio/followers","following_url":"https://api.github.com/users/mt-sergio/following{/other_user}","gists_url":"https://api.github.com/users/mt-sergio/gists{/gist_id}","starred_url":"https://api.github.com/users/mt-sergio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mt-sergio/subscriptions","organizations_url":"https://api.github.com/users/mt-sergio/orgs","repos_url":"https://api.github.com/users/mt-sergio/repos","events_url":"https://api.github.com/users/mt-sergio/events{/privacy}","received_events_url":"https://api.github.com/users/mt-sergio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-25T10:04:25Z","updated_at":"2015-11-25T10:04:25Z","closed_at":null,"body":"I'm trying to execute a lambda module which uses gm, but this line makes it crash when I try to browserify:\r\n\r\n    module.exports.version = JSON.parse(\r\n      require('fs').readFileSync(__dirname + '/package.json', 'utf8')\r\n    ).version;\r\n\r\nAny idea? I will solve it just excluding the module, but I would prefer to do it better."}}