{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/fsevents/issues/131","repository_url":"https://api.github.com/repos/strongloop/fsevents","labels_url":"https://api.github.com/repos/strongloop/fsevents/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/fsevents/issues/131/comments","events_url":"https://api.github.com/repos/strongloop/fsevents/issues/131/events","html_url":"https://github.com/strongloop/fsevents/issues/131","id":152736866,"number":131,"title":"Cannot install fsevents with Electron as runtime","user":{"login":"bpasero","id":900690,"avatar_url":"https://avatars.githubusercontent.com/u/900690?v=3","gravatar_id":"","url":"https://api.github.com/users/bpasero","html_url":"https://github.com/bpasero","followers_url":"https://api.github.com/users/bpasero/followers","following_url":"https://api.github.com/users/bpasero/following{/other_user}","gists_url":"https://api.github.com/users/bpasero/gists{/gist_id}","starred_url":"https://api.github.com/users/bpasero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpasero/subscriptions","organizations_url":"https://api.github.com/users/bpasero/orgs","repos_url":"https://api.github.com/users/bpasero/repos","events_url":"https://api.github.com/users/bpasero/events{/privacy}","received_events_url":"https://api.github.com/users/bpasero/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-05-03T09:48:56Z","updated_at":"2016-05-03T17:45:49Z","closed_at":null,"body":"Using latest `fsevents` that brings `node-pre-gyp` I am no longer able to install this dependency (via `chokidar`) into VS Code that leverages Electron as framework. \r\n\r\nOur `npm` script for installation configures some environment variables to pick up the correct headers for the embedded node.js version within Electron:\r\n\r\n```shell\r\nnpm_config_disturl=https://atom.io/download/atom-shell \\\r\nnpm_config_target=$ELECTRON_VERSION \\\r\n```\r\n\r\nRunning this via `npm install` yields:\r\n\r\n```\r\n> fsevents@1.0.12 install /Users/bpasero/Development/monaco/node_modules/fsevents\r\n> node-pre-gyp install --fallback-to-build\r\n\r\nnode-pre-gyp ERR! install error \r\nnode-pre-gyp ERR! stack Error: Unsupported target version: 0.37.6\r\nnode-pre-gyp ERR! stack     at get_runtime_abi (/Users/bpasero/Development/monaco/node_modules/node-pre-gyp/lib/util/versioning.js:156:23)\r\nnode-pre-gyp ERR! stack     at Object.module.exports.evaluate (/Users/bpasero/Development/monaco/node_modules/node-pre-gyp/lib/util/versioning.js:277:19)\r\nnode-pre-gyp ERR! stack     at install (/Users/bpasero/Development/monaco/node_modules/node-pre-gyp/lib/install.js:138:31)\r\nnode-pre-gyp ERR! stack     at Object.self.commands.(anonymous function) [as install] (/Users/bpasero/Development/monaco/node_modules/node-pre-gyp/lib/node-pre-gyp.js:48:37)\r\nnode-pre-gyp ERR! stack     at run (/Users/bpasero/Development/monaco/node_modules/node-pre-gyp/bin/node-pre-gyp:79:30)\r\nnode-pre-gyp ERR! stack     at Object.<anonymous> (/Users/bpasero/Development/monaco/node_modules/node-pre-gyp/bin/node-pre-gyp:131:1)\r\nnode-pre-gyp ERR! stack     at Module._compile (module.js:413:34)\r\nnode-pre-gyp ERR! stack     at Object.Module._extensions..js (module.js:422:10)\r\nnode-pre-gyp ERR! stack     at Module.load (module.js:357:32)\r\nnode-pre-gyp ERR! stack     at Function.Module._load (module.js:314:12)\r\nnode-pre-gyp ERR! System Darwin 15.4.0\r\nnode-pre-gyp ERR! command \"/usr/local/bin/node\" \"/Users/bpasero/Development/monaco/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\r\nnode-pre-gyp ERR! cwd /Users/bpasero/Development/monaco/node_modules/fsevents\r\nnode-pre-gyp ERR! node -v v5.10.0\r\nnode-pre-gyp ERR! node-pre-gyp -v v0.6.27\r\nnode-pre-gyp ERR! not ok \r\nUnsupported target version: 0.37.6\r\nnpm WARN install:fsevents@1.0.12 fsevents@1.0.12 install: `node-pre-gyp install --fallback-to-build`\r\nnpm WARN install:fsevents@1.0.12 Exit status 1\r\n```\r\n\r\nThis basically means we cannot update to newer versions of `chokidar` currently."},"comment":{"url":"https://api.github.com/repos/strongloop/fsevents/issues/comments/216608922","html_url":"https://github.com/strongloop/fsevents/issues/131#issuecomment-216608922","issue_url":"https://api.github.com/repos/strongloop/fsevents/issues/131","id":216608922,"user":{"login":"es128","id":1740641,"avatar_url":"https://avatars.githubusercontent.com/u/1740641?v=3","gravatar_id":"","url":"https://api.github.com/users/es128","html_url":"https://github.com/es128","followers_url":"https://api.github.com/users/es128/followers","following_url":"https://api.github.com/users/es128/following{/other_user}","gists_url":"https://api.github.com/users/es128/gists{/gist_id}","starred_url":"https://api.github.com/users/es128/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/es128/subscriptions","organizations_url":"https://api.github.com/users/es128/orgs","repos_url":"https://api.github.com/users/es128/repos","events_url":"https://api.github.com/users/es128/events{/privacy}","received_events_url":"https://api.github.com/users/es128/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T17:45:49Z","updated_at":"2016-05-03T17:45:49Z","body":"node-pre-gyp changes where the binary goes. What I did was wire node-pre-gyp's `--build-from-source` option to the env variable so that you're not dependent on the pre-build binaries. \r\n\r\nI tried cutting out the `node-pre-gyp` command entirely, but the `bindings.gyp` has incompatible changes. Maybe I need to keep trying that route to let it completely defer to node's native build handling.\r\n\r\nWe could maintain and publish a fork I guess, but then we'd need the same for chokidar. Would be nice if `npm` allowed users control over swapping out compatible subdependencies"}}