{"action":"created","issue":{"url":"https://api.github.com/repos/Manak/npm-programmatic/issues/22","repository_url":"https://api.github.com/repos/Manak/npm-programmatic","labels_url":"https://api.github.com/repos/Manak/npm-programmatic/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/Manak/npm-programmatic/issues/22/comments","events_url":"https://api.github.com/repos/Manak/npm-programmatic/issues/22/events","html_url":"https://github.com/Manak/npm-programmatic/issues/22","id":443975743,"node_id":"MDU6SXNzdWU0NDM5NzU3NDM=","number":22,"title":"How to handle node-gyp","user":{"login":"linonetwo","id":3746270,"node_id":"MDQ6VXNlcjM3NDYyNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/3746270?v=4","gravatar_id":"","url":"https://api.github.com/users/linonetwo","html_url":"https://github.com/linonetwo","followers_url":"https://api.github.com/users/linonetwo/followers","following_url":"https://api.github.com/users/linonetwo/following{/other_user}","gists_url":"https://api.github.com/users/linonetwo/gists{/gist_id}","starred_url":"https://api.github.com/users/linonetwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linonetwo/subscriptions","organizations_url":"https://api.github.com/users/linonetwo/orgs","repos_url":"https://api.github.com/users/linonetwo/repos","events_url":"https://api.github.com/users/linonetwo/events{/privacy}","received_events_url":"https://api.github.com/users/linonetwo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-05-14T15:17:12Z","updated_at":"2019-06-22T14:36:26Z","closed_at":null,"author_association":"NONE","body":"In electron app\r\n\r\nI'm currently installing package using `npm@6.9.0` package inside an electron v5.0.1 app:\r\n\r\n```js\r\n      const npm = require('npm')\r\n      npm.load({}, (npmErr) => {\r\n        if (npmErr) return reject(npmErr)\r\n        npm.commands.install(packagePath, packages, (err) => {\r\n          if (err) return reject(err)\r\n          installStatus.set(name, 'installed').then(resolve)\r\n        })\r\n      })\r\n```\r\n\r\nAnd it always get `node-pre-gyp install --fallback-to-build spawn ENOENT` in `reject(err)`.\r\n\r\nI'm considering switching to this package, will it work?\r\n"},"comment":{"url":"https://api.github.com/repos/Manak/npm-programmatic/issues/comments/504670846","html_url":"https://github.com/Manak/npm-programmatic/issues/22#issuecomment-504670846","issue_url":"https://api.github.com/repos/Manak/npm-programmatic/issues/22","id":504670846,"node_id":"MDEyOklzc3VlQ29tbWVudDUwNDY3MDg0Ng==","user":{"login":"linonetwo","id":3746270,"node_id":"MDQ6VXNlcjM3NDYyNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/3746270?v=4","gravatar_id":"","url":"https://api.github.com/users/linonetwo","html_url":"https://github.com/linonetwo","followers_url":"https://api.github.com/users/linonetwo/followers","following_url":"https://api.github.com/users/linonetwo/following{/other_user}","gists_url":"https://api.github.com/users/linonetwo/gists{/gist_id}","starred_url":"https://api.github.com/users/linonetwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linonetwo/subscriptions","organizations_url":"https://api.github.com/users/linonetwo/orgs","repos_url":"https://api.github.com/users/linonetwo/repos","events_url":"https://api.github.com/users/linonetwo/events{/privacy}","received_events_url":"https://api.github.com/users/linonetwo/received_events","type":"User","site_admin":false},"created_at":"2019-06-22T14:36:26Z","updated_at":"2019-06-22T14:36:26Z","author_association":"NONE","body":"No, I finally include a binary that only works for my machine.\r\n\r\nI'm creating a plugin for http://zazuapp.org/ , it will clone plugin from github and run `npm i` programmatically for it, but node-gyp related things always failed it."}}
{"actor":{"display_login":"linonetwo"}}