{"action":"opened","issue":{"url":"https://api.github.com/repos/theia-ide/theia/issues/900","repository_url":"https://api.github.com/repos/theia-ide/theia","labels_url":"https://api.github.com/repos/theia-ide/theia/issues/900/labels{/name}","comments_url":"https://api.github.com/repos/theia-ide/theia/issues/900/comments","events_url":"https://api.github.com/repos/theia-ide/theia/issues/900/events","html_url":"https://github.com/theia-ide/theia/issues/900","id":277413779,"number":900,"title":"Build fails without globally installed node-gyp","user":{"login":"jmrog","id":8409748,"avatar_url":"https://avatars2.githubusercontent.com/u/8409748?v=4","gravatar_id":"","url":"https://api.github.com/users/jmrog","html_url":"https://github.com/jmrog","followers_url":"https://api.github.com/users/jmrog/followers","following_url":"https://api.github.com/users/jmrog/following{/other_user}","gists_url":"https://api.github.com/users/jmrog/gists{/gist_id}","starred_url":"https://api.github.com/users/jmrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmrog/subscriptions","organizations_url":"https://api.github.com/users/jmrog/orgs","repos_url":"https://api.github.com/users/jmrog/repos","events_url":"https://api.github.com/users/jmrog/events{/privacy}","received_events_url":"https://api.github.com/users/jmrog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-28T14:55:02Z","updated_at":"2017-11-28T14:55:02Z","closed_at":null,"author_association":"NONE","body":"OS: Mac OSX Sierra\r\nNode version: v8.8.1\r\nYarn version: v1.2.1\r\n\r\nFollowing the [Quick Start instructions](https://github.com/theia-ide/theia/blob/master/doc/Developing.md#quick-start), the build failed at the `yarn` command. The console output was as follows:\r\n\r\n```\r\n[5/5] 📃  Building fresh packages...\r\n[-/7] ⠈ waiting...\r\n[-/7] ⠈ waiting...\r\n[6/7] ⠈ node-pty\r\n[4/7] ⠈ electron\r\nerror /Users/jason/Projects/theia/node_modules/node-pty: Command failed.\r\nExit code: 1\r\nCommand: node scripts/install.js\r\nArguments:\r\nDirectory: /Users/jason/Projects/theia/node_modules/node-pty\r\nOutput:\r\nevents.js:182\r\n      throw er; // Unhandled 'error' event\r\n      ^\r\n\r\nError: spawn node-gyp ENOENT\r\n    at _errnoException (util.js:1024:11)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:192:19)\r\n    at onErrorNT (internal/child_process.js:374:16)\r\n    at _combinedTickCallback (internal/process/next_tick.js:138:11)\r\n    at process._tickCallback (internal/process/next_tick.js:180:9)\r\n```\r\n\r\nThis seems to have failed due to the fact that node-pty uses node-gyp in its `scripts/install.js` script, and node-gyp could not be found. A workaround was to install node-gyp globally (`npm install -g node-gyp`). After that, everything worked as expected. \r\n\r\nI'm not sure whether this is ultimately an issue with node-pty (I was able to install node-pty itself without any issues, even when node-gyp wasn't globally installed, but I didn't investigate any further than that). Probably, the [Prerequisites section](https://github.com/theia-ide/theia/blob/master/doc/Developing.md#prerequisites) of the docs just need to be updated to specify that node-gyp is also required, at least on Mac OSX."}}
{"actor":{"display_login":"jmrog"}}