{"action":"opened","issue":{"url":"https://api.github.com/repos/tjanczuk/edge/issues/293","labels_url":"https://api.github.com/repos/tjanczuk/edge/issues/293/labels{/name}","comments_url":"https://api.github.com/repos/tjanczuk/edge/issues/293/comments","events_url":"https://api.github.com/repos/tjanczuk/edge/issues/293/events","html_url":"https://github.com/tjanczuk/edge/issues/293","id":92502655,"number":293,"title":"failed to installed with npm","user":{"login":"osyed","id":989981,"avatar_url":"https://avatars.githubusercontent.com/u/989981?v=3","gravatar_id":"","url":"https://api.github.com/users/osyed","html_url":"https://github.com/osyed","followers_url":"https://api.github.com/users/osyed/followers","following_url":"https://api.github.com/users/osyed/following{/other_user}","gists_url":"https://api.github.com/users/osyed/gists{/gist_id}","starred_url":"https://api.github.com/users/osyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osyed/subscriptions","organizations_url":"https://api.github.com/users/osyed/orgs","repos_url":"https://api.github.com/users/osyed/repos","events_url":"https://api.github.com/users/osyed/events{/privacy}","received_events_url":"https://api.github.com/users/osyed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-01T22:55:44Z","updated_at":"2015-07-01T22:55:44Z","closed_at":null,"body":"When I tried to install this package using npm, it failed with this error:\r\n\r\n  File \"binding.gyp\", line 1\r\n    {\r\n     ^\r\nSyntaxError: invalid syntax\r\ngyp ERR! configure error \r\ngyp ERR! stack Error: `gyp` failed with exit code: 1\r\n\r\nTurned out that there were carriage return characters in the binding.gyp file and on a linux system it was causing problems. Removed them with: \r\ntr -d '\\r' < binding.gyp > x; rm binding.gyp; mv x binding.gyp\r\nand it got further.\r\n\r\nI then ran into this error:\r\nPackage mono-2 was not found in the pkg-config search path.\r\nPerhaps you should add the directory containing `mono-2.pc'\r\nto the PKG_CONFIG_PATH environment variable\r\nNo package 'mono-2' found\r\ngyp: Call to 'pkg-config mono-2 --libs' returned exit status 1. while trying to load binding.gyp\r\ngyp ERR! configure error \r\ngyp ERR! stack Error: `gyp` failed with exit code: 1\r\n\r\nTurned out that I needed to set the environment variable like:\r\nexport PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig:$PKG_CONFIG_PATH\r\n\r\nThe npm install worked after that. Hope this helps someone else who might run into this.\r\n\r\n"}}