{"action":"opened","issue":{"url":"https://api.github.com/repos/pierreinglebert/node-zopfli/issues/98","repository_url":"https://api.github.com/repos/pierreinglebert/node-zopfli","labels_url":"https://api.github.com/repos/pierreinglebert/node-zopfli/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/pierreinglebert/node-zopfli/issues/98/comments","events_url":"https://api.github.com/repos/pierreinglebert/node-zopfli/issues/98/events","html_url":"https://github.com/pierreinglebert/node-zopfli/issues/98","id":357521555,"node_id":"MDU6SXNzdWUzNTc1MjE1NTU=","number":98,"title":"Fails to compile (on MacOS) with Node 10","user":{"login":"alextes","id":2011351,"node_id":"MDQ6VXNlcjIwMTEzNTE=","avatar_url":"https://avatars1.githubusercontent.com/u/2011351?v=4","gravatar_id":"","url":"https://api.github.com/users/alextes","html_url":"https://github.com/alextes","followers_url":"https://api.github.com/users/alextes/followers","following_url":"https://api.github.com/users/alextes/following{/other_user}","gists_url":"https://api.github.com/users/alextes/gists{/gist_id}","starred_url":"https://api.github.com/users/alextes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alextes/subscriptions","organizations_url":"https://api.github.com/users/alextes/orgs","repos_url":"https://api.github.com/users/alextes/repos","events_url":"https://api.github.com/users/alextes/events{/privacy}","received_events_url":"https://api.github.com/users/alextes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-06T07:02:50Z","updated_at":"2018-09-06T07:02:50Z","closed_at":null,"author_association":"NONE","body":"node: v10.9.0\r\nnode-gyp: v3.7.0\r\n\r\nWorks fine with node 8 and 9.\r\n\r\n```\r\n❯ npm i -S node-zopfli\r\n\r\n> node-zopfli@2.0.2 install /Users/alextes/code/zopfli/node_modules/node-zopfli                                                                    \r\n> node-pre-gyp install --fallback-to-build\r\n\r\nnode-pre-gyp ERR! Tried to download(403): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v64-darwin-x64.tar.gz                    \r\nnode-pre-gyp ERR! Pre-built binaries not found for node-zopfli@2.0.2 and node@10.9.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)\r\nnode-pre-gyp ERR! Tried to download(undefined): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v64-darwin-x64.tar.gz              \r\nnode-pre-gyp ERR! Pre-built binaries not found for node-zopfli@2.0.2 and node@10.9.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)\r\n  CXX(target) Release/obj.target/zopfli/src/zopfli-binding.o\r\n  CXX(target) Release/obj.target/zopfli/src/zopfli-binding.o\r\n../src/zopfli-binding.cc../src/zopfli-binding.cc::137137::1515::  warningwarning: : 'Call' 'Call'is  isdeprecated  deprecated[-Wdeprecated-declarations] [-Wdeprecated-declarations]\r\n\r\n    callback->Call(2, argv);\r\n              ^\r\n    callback->Call(2, argv);\r\n              ^\r\n../../nan/nan.h:1646:3: note../../nan/nan.h: :1646'Call': 3has:  been explicitlynote : marked deprecated'Call'  herehas                            \r\nbeen explicitly marked deprecated here  NAN_DEPRECATED inline v8::Local<v8::Value>                                                                 \r\n\r\n  ^\r\n../../nan/nan.h:102:40:   NAN_DEPRECATED inline v8::Local<v8::Value>\r\nnote:   ^\r\nexpanded from macro 'NAN_DEPRECATED'\r\n../../nan/nan.h:102:40: note: expanded from macro 'NAN_DEPRECATED'\r\n# define NAN_DEPRECATED __attribute__((deprecated))\r\n                                       ^\r\n# define NAN_DEPRECATED __attribute__((deprecated))\r\n                                       ^\r\n1 warning generated.\r\n1 warning generated.\r\nrm: ./Release/.deps/Release/obj.target/zopfli/src/zopfli-binding.o.d.raw: No such file or directory                                                \r\nmake: *** [Release/obj.target/zopfli/src/zopfli-binding.o] Error 1\r\ngyp   CXX(target) Release/obj.target/zopfli/src/png/zopflipng.o\r\nERR! build error\r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/Users/alextes/.nvm/versions/node/v10.9.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:182:13)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:239:12)                                                       \r\ngyp ERR! System Darwin 17.7.0\r\ngyp ERR! command \"/Users/alextes/.nvm/versions/node/v10.9.0/bin/node\" \"/Users/alextes/.nvm/versions/node/v10.9.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/Users/alextes/code/zopfli/node_modules/node-zopfli/lib/binding/node-v64-darwin-x64/zopfli.node\" \"--module_name=zopfli\" \"--module_path=/Users/alextes/code/zopfli/node_modules/node-zopfli/lib/binding/node-v64-darwin-x64\"           \r\ngyp ERR! cwd /Users/alextes/code/zopfli/node_modules/node-zopfli\r\ngyp ERR! node -v v10.9.0\r\ngyp ERR! node-gyp -v v3.7.0\r\ngyp ERR! not ok\r\nnode-pre-gyp ERR! build error\r\nnode-pre-gyp ERR! stack Error: Failed to execute '/Users/alextes/.nvm/versions/node/v10.9.0/bin/node /Users/alextes/.nvm/versions/node/v10.9.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/alextes/code/zopfli/node_modules/node-zopfli/lib/binding/node-v64-darwin-x64/zopfli.node --module_name=zopfli --module_path=/Users/alextes/code/zopfli/node_modules/node-zopfli/lib/binding/node-v64-darwin-x64' (1)\r\nnode-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/alextes/code/zopfli/node_modules/node-pre-gyp/lib/util/compile.js:83:29)           \r\nnode-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)\r\nnode-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:961:16)                                                                       \r\nnode-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:250:5)                                               \r\nnode-pre-gyp ERR! System Darwin 17.7.0\r\nnode-pre-gyp ERR! command \"/Users/alextes/.nvm/versions/node/v10.9.0/bin/node\" \"/Users/alextes/code/zopfli/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\r\nnode-pre-gyp ERR! cwd /Users/alextes/code/zopfli/node_modules/node-zopfli\r\nnode-pre-gyp ERR! node -v v10.9.0\r\nnode-pre-gyp ERR! node-pre-gyp -v v0.6.39\r\nnode-pre-gyp ERR! not ok\r\nFailed to execute '/Users/alextes/.nvm/versions/node/v10.9.0/bin/node /Users/alextes/.nvm/versions/node/v10.9.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/alextes/code/zopfli/node_modules/node-zopfli/lib/binding/node-v64-darwin-x64/zopfli.node --module_name=zopfli --module_path=/Users/alextes/code/zopfli/node_modules/node-zopfli/lib/binding/node-v64-darwin-x64' (1)                  npm WARN zopfli@1.0.0 No description\r\nnpm WARN zopfli@1.0.0 No repository field.\r\n\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! node-zopfli@2.0.2 install: `node-pre-gyp install --fallback-to-build`                                                                     \r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the node-zopfli@2.0.2 install script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.                                                 \r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /Users/alextes/.npm/_logs/2018-09-06T06_51_53_364Z-debug.log\r\n\r\n../src/png/zopflipng.cc:3:10: fatal error: 'nan.h' file not found\r\n#include \"nan.h\"\r\n         ^~~~~~~\r\n1 error generated.\r\nmake: *** [Release/obj.target/zopfli/src/png/zopflipng.o] Error 1\r\ngyp ERR! build error\r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/Users/alextes/.nvm/versions/node/v10.9.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:182:13)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:239:12)                                                       \r\ngyp ERR! System Darwin 17.7.0\r\ngyp ERR! command \"/Users/alextes/.nvm/versions/node/v10.9.0/bin/node\" \"/Users/alextes/.nvm/versions/node/v10.9.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/Users/alextes/code/zopfli/node_modules/node-zopfli/lib/binding/node-v64-darwin-x64/zopfli.node\" \"--module_name=zopfli\" \"--module_path=/Users/alextes/code/zopfli/node_modules/node-zopfli/lib/binding/node-v64-darwin-x64\"           \r\ngyp ERR! cwd /Users/alextes/code/zopfli/node_modules/node-zopfli\r\ngyp ERR! node -v v10.9.0\r\ngyp ERR! node-gyp -v v3.7.0\r\n```"}}
{"actor":{"display_login":"alextes"}}