{"action":"created","issue":{"url":"https://api.github.com/repos/electron-userland/electron-builder/issues/3297","repository_url":"https://api.github.com/repos/electron-userland/electron-builder","labels_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/3297/labels{/name}","comments_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/3297/comments","events_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/3297/events","html_url":"https://github.com/electron-userland/electron-builder/issues/3297","id":356584637,"node_id":"MDU6SXNzdWUzNTY1ODQ2Mzc=","number":3297,"title":"gyp build error on Mac with usb native module","user":{"login":"semireg","id":1819762,"node_id":"MDQ6VXNlcjE4MTk3NjI=","avatar_url":"https://avatars0.githubusercontent.com/u/1819762?v=4","gravatar_id":"","url":"https://api.github.com/users/semireg","html_url":"https://github.com/semireg","followers_url":"https://api.github.com/users/semireg/followers","following_url":"https://api.github.com/users/semireg/following{/other_user}","gists_url":"https://api.github.com/users/semireg/gists{/gist_id}","starred_url":"https://api.github.com/users/semireg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semireg/subscriptions","organizations_url":"https://api.github.com/users/semireg/orgs","repos_url":"https://api.github.com/users/semireg/repos","events_url":"https://api.github.com/users/semireg/events{/privacy}","received_events_url":"https://api.github.com/users/semireg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-03T19:12:14Z","updated_at":"2018-09-08T12:35:33Z","closed_at":null,"author_association":"NONE","body":"* **Version**: 20.28.3\r\n* **Target**: mac\r\n\r\nRunning `./node_modules/.bin/electron-builder` results in an error that I can't reproduce if I run the same command again.\r\n\r\nThis happens after `rebuilding native production dependencies platform=darwin arch=x64` ...\r\n\r\nThe essence is app/package.json contains `\"usb\": \"^1.3.3\"` and the error looks like it's an rm failure from the Makefile.\r\n\r\n```\r\nrm: ./Release/.deps/Release/obj.target/libusb/libusb/libusb/core.o.d.raw: No such file or directory\r\nmake: *** [Release/obj.target/libusb/libusb/libusb/core.o] Error 1\r\ngyp ERR! build error \r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\n```\r\n\r\nIf I `cd /Users/user/myapp/app/node_modules/usb` and run the command `\"/usr/local/Cellar/node/10.7.0/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/Users/user/myapp/app/node_modules/usb/src/binding/usb_bindings.node\" \"--module_name=usb_bindings\" \"--module_path=/Users/user/myapp/app/node_modules/usb/src/binding\" \"--napi_version=3\" \"--node_abi_napi=napi\"` it doesn't error. However, it doesn't fix the issue and electron-builder continues to error on packaging.\r\n\r\n```\r\ngyp info it worked if it ends with ok\r\ngyp info using node-gyp@3.8.0\r\ngyp info using node@10.7.0 | darwin | x64\r\ngyp info spawn make\r\ngyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]\r\nmake: Nothing to be done for `all'.\r\ngyp info ok \r\n```\r\n\r\nHere's output of the gyp configure/build commands run in isolation. They all succeed.\r\n\r\n```\r\nusers-mbp:usb user$ \"/usr/local/Cellar/node/10.7.0/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"configure\" \"--fallback-to-build\" \"--module=/Users/user/myapp/app/node_modules/usb/src/binding/usb_bindings.node\" \"--module_name=usb_bindings\" \"--module_path=/Users/user/myapp/app/node_modules/usb/src/binding\" \"--napi_version=3\" \"--node_abi_napi=napi\"\r\ngyp info it worked if it ends with ok\r\ngyp info using node-gyp@3.8.0\r\ngyp info using node@10.7.0 | darwin | x64\r\ngyp info spawn /usr/local/bin/python2\r\ngyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',\r\ngyp info spawn args   'binding.gyp',\r\ngyp info spawn args   '-f',\r\ngyp info spawn args   'make',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   '/Users/user/myapp/app/node_modules/usb/build/config.gypi',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',\r\ngyp info spawn args   '-I',\r\ngyp info spawn args   '/Users/user/.node-gyp/10.7.0/include/node/common.gypi',\r\ngyp info spawn args   '-Dlibrary=shared_library',\r\ngyp info spawn args   '-Dvisibility=default',\r\ngyp info spawn args   '-Dnode_root_dir=/Users/user/.node-gyp/10.7.0',\r\ngyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',\r\ngyp info spawn args   '-Dnode_lib_file=/Users/user/.node-gyp/10.7.0/<(target_arch)/node.lib',\r\ngyp info spawn args   '-Dmodule_root_dir=/Users/user/myapp/app/node_modules/usb',\r\ngyp info spawn args   '-Dnode_engine=v8',\r\ngyp info spawn args   '--depth=.',\r\ngyp info spawn args   '--no-parallel',\r\ngyp info spawn args   '--generator-output',\r\ngyp info spawn args   'build',\r\ngyp info spawn args   '-Goutput_dir=.' ]\r\ngyp info ok \r\n\r\n\r\nusers-mbp:usb user$ \"/usr/local/Cellar/node/10.7.0/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/Users/user/myapp/app/node_modules/usb/src/binding/usb_bindings.node\" \"--module_name=usb_bindings\" \"--module_path=/Users/user/myapp/app/node_modules/usb/src/binding\" \"--napi_version=3\" \"--node_abi_napi=napi\"\r\ngyp info it worked if it ends with ok\r\ngyp info using node-gyp@3.8.0\r\ngyp info using node@10.7.0 | darwin | x64\r\ngyp info spawn make\r\ngyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/core.o\r\n../libusb/libusb/core.c:2241:35: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]\r\n        if (header_len < 0 || header_len >= sizeof(buf)) {\r\n                              ~~~~~~~~~~ ^  ~~~~~~~~~~~\r\n../libusb/libusb/core.c:2250:44: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]\r\n        if (text_len < 0 || text_len + header_len >= sizeof(buf)) {\r\n                            ~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~\r\n2 warnings generated.\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/io.o\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/sync.o\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/os/darwin_usb.o\r\n../libusb/libusb/os/darwin_usb.c:344:3: warning: 'objc_registerThreadWithCollector' is deprecated: it does nothing. Define OBJC_SILENCE_GC_DEPRECATIONS=1 to temporarily silence this diagnostic.\r\n      [-Wdeprecated-declarations]\r\n  objc_registerThreadWithCollector();\r\n  ^\r\n/usr/include/objc/objc-auto.h:242:1: note: 'objc_registerThreadWithCollector' has been explicitly marked deprecated here\r\nOBJC_GC_DEPRECATED(\"it does nothing\")\r\n^\r\n/usr/include/objc/objc-auto.h:45:55: note: expanded from macro 'OBJC_GC_DEPRECATED'\r\n#   define OBJC_GC_DEPRECATED(message) __attribute__((deprecated(message \". Define OBJC_SILENCE_GC_DEPRECATIONS=1 to temporarily silence this diagnostic.\")))\r\n                                                      ^\r\n../libusb/libusb/os/darwin_usb.c:1281:27: warning: expression which evaluates to zero treated as a null pointer constant of type 'IOUSBInterfaceInterface550 **'\r\n      (aka 'struct IOUSBInterfaceStruct550 **') [-Wnon-literal-null-conversion]\r\n  cInterface->interface = IO_OBJECT_NULL;\r\n                          ^~~~~~~~~~~~~~\r\n/System/Library/Frameworks/IOKit.framework/Headers/IOTypes.h:164:24: note: expanded from macro 'IO_OBJECT_NULL'\r\n#define IO_OBJECT_NULL  ((io_object_t) 0)\r\n                        ^~~~~~~~~~~~~~~~~\r\n2 warnings generated.\r\n  LIBTOOL-STATIC Release/usb.a\r\n  CXX(target) Release/obj.target/usb_bindings/src/node_usb.o\r\n../src/node_usb.cc:151:7: warning: 'MakeCallback' is deprecated [-Wdeprecated-declarations]\r\n        Nan::MakeCallback(Nan::New(hotplugThis), \"emit\", 2, argv);\r\n             ^\r\n../../nan/nan.h:1000:3: note: 'MakeCallback' has been explicitly marked deprecated here\r\n  NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(\r\n  ^\r\n../../nan/nan.h:102:40: note: expanded from macro 'NAN_DEPRECATED'\r\n# define NAN_DEPRECATED __attribute__((deprecated))\r\n                                       ^\r\n1 warning generated.\r\n  CXX(target) Release/obj.target/usb_bindings/src/device.o\r\n../src/device.cc:237:9: warning: 'MakeCallback' is deprecated [-Wdeprecated-declarations]\r\n                        Nan::MakeCallback(device, Nan::New(baton->callback), 1, argv);\r\n                             ^\r\n../../nan/nan.h:958:3: note: 'MakeCallback' has been explicitly marked deprecated here\r\n  NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(\r\n  ^\r\n../../nan/nan.h:102:40: note: expanded from macro 'NAN_DEPRECATED'\r\n# define NAN_DEPRECATED __attribute__((deprecated))\r\n                                       ^\r\n1 warning generated.\r\n  CXX(target) Release/obj.target/usb_bindings/src/transfer.o\r\n../src/transfer.cc:126:8: warning: 'MakeCallback' is deprecated [-Wdeprecated-declarations]\r\n                Nan::MakeCallback(self->handle(), Nan::New(self->v8callback), 3, argv);\r\n                     ^\r\n../../nan/nan.h:958:3: note: 'MakeCallback' has been explicitly marked deprecated here\r\n  NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(\r\n  ^\r\n../../nan/nan.h:102:40: note: expanded from macro 'NAN_DEPRECATED'\r\n# define NAN_DEPRECATED __attribute__((deprecated))\r\n                                       ^\r\n1 warning generated.\r\n  SOLINK_MODULE(target) Release/usb_bindings.node\r\n  COPY /Users/user/myapp/app/node_modules/usb/src/binding/usb_bindings.node\r\n  TOUCH Release/obj.target/action_after_build.stamp\r\ngyp info ok \r\n```\r\n\r\nMoreover, if I cd into app/node_modules/usb, both of these commands succeed:\r\n\r\n```\r\nnode-pre-gyp install --fallback-to-build\r\nnode-pre-gyp install --update-binary\r\n```\r\n\r\nWhat's very strange is I remember having this same bug a few weeks ago and it was resolved with something simple like removing ./node_modules and ./app/node_modules, removing package-lock.json, ~/.npm, .node-gyp, etc... but I've tried all of these and still no luck.\r\n\r\nAnother observation is that I must run `npm install` within app/ before I run it in the project root.\r\n\r\nAny ideas?\r\n\r\n```\r\n> usb@1.3.3 install /Users/user/myapp/app/node_modules/usb\r\n> node-pre-gyp install --fallback-to-build\r\n\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/core.o\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/core.o\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o\r\nFailed to execute '/usr/local/Cellar/node/10.7.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/user/myapp/app/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/Users/user/myapp/app/node_modules/usb/src/binding --napi_version=3 --node_abi_napi=napi' (1)\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/io.o\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/sync.o\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o\r\n  CC(target) Release/obj.target/libusb/libusb/libusb/os/darwin_usb.o\r\n  LIBTOOL-STATIC Release/usb.a\r\n  CXX(target) Release/obj.target/usb_bindings/src/node_usb.o\r\n  CXX(target) Release/obj.target/usb_bindings/src/device.o\r\n  CXX(target) Release/obj.target/usb_bindings/src/transfer.o\r\n  SOLINK_MODULE(target) Release/usb_bindings.node\r\n  COPY /Users/user/myapp/app/node_modules/usb/src/binding/usb_bindings.node\r\n  TOUCH Release/obj.target/action_after_build.stamp\r\n\r\nError output:\r\n../src/node_printer_posix.cc:261:39: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]\r\n                v8::String::Utf8Value keyStr(key->ToString());\r\n                                      ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8.h:2819:5: note: 'Utf8Value' has been explicitly marked deprecated here\r\n    V8_DEPRECATED(\"Use Isolate version\",\r\n    ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'\r\n  declarator __attribute__((deprecated))\r\n                            ^\r\n../src/node_printer_posix.cc:262:39: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]\r\n                v8::String::Utf8Value valStr(iV8Options->Get(key)->ToString());\r\n                                      ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8.h:2819:5: note: 'Utf8Value' has been explicitly marked deprecated here\r\n    V8_DEPRECATED(\"Use Isolate version\",\r\n    ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'\r\n  declarator __attribute__((deprecated))\r\n                            ^\r\n../src/node_printer_posix.cc:321:39: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]\r\n    REQUIRE_ARGUMENT_STRING(iArgs, 0, printername);\r\n                                      ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8.h:2819:5: note: 'Utf8Value' has been explicitly marked deprecated here\r\n    V8_DEPRECATED(\"Use Isolate version\",\r\n    ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'\r\n  declarator __attribute__((deprecated))\r\n                            ^\r\n../src/node_printer_posix.cc:344:39: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]\r\n    REQUIRE_ARGUMENT_STRING(iArgs, 0, printername);\r\n                                      ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8.h:2819:5: note: 'Utf8Value' has been explicitly marked deprecated here\r\n    V8_DEPRECATED(\"Use Isolate version\",\r\n    ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'\r\n  declarator __attribute__((deprecated))\r\n                            ^\r\n../src/node_printer_posix.cc:367:39: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]\r\n    REQUIRE_ARGUMENT_STRING(iArgs, 0, printername);\r\n                                      ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8.h:2819:5: note: 'Utf8Value' has been explicitly marked deprecated here\r\n    V8_DEPRECATED(\"Use Isolate version\",\r\n    ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'\r\n  declarator __attribute__((deprecated))\r\n                            ^\r\n../src/node_printer_posix.cc:403:39: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]\r\n    REQUIRE_ARGUMENT_STRING(iArgs, 0, printername);\r\n                                      ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8.h:2819:5: note: 'Utf8Value' has been explicitly marked deprecated here\r\n    V8_DEPRECATED(\"Use Isolate version\",\r\n    ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'\r\n  declarator __attribute__((deprecated))\r\n                            ^\r\n../src/node_printer_posix.cc:405:39: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]\r\n    REQUIRE_ARGUMENT_STRING(iArgs, 2, jobCommandV8);\r\n                                      ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8.h:2819:5: note: 'Utf8Value' has been explicitly marked deprecated here\r\n    V8_DEPRECATED(\"Use Isolate version\",\r\n    ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'\r\n  declarator __attribute__((deprecated))\r\n                            ^\r\n../src/node_printer_posix.cc:462:39: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]\r\n    REQUIRE_ARGUMENT_STRING(iArgs, 1, printername);\r\n                                      ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8.h:2819:5: note: 'Utf8Value' has been explicitly marked deprecated here\r\n    V8_DEPRECATED(\"Use Isolate version\",\r\n    ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'\r\n  declarator __attribute__((deprecated))\r\n                            ^\r\n../src/node_printer_posix.cc:463:39: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]\r\n    REQUIRE_ARGUMENT_STRING(iArgs, 2, docname);\r\n                                      ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8.h:2819:5: note: 'Utf8Value' has been explicitly marked deprecated here\r\n    V8_DEPRECATED(\"Use Isolate version\",\r\n    ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'\r\n  declarator __attribute__((deprecated))\r\n                            ^\r\n../src/node_printer_posix.cc:464:39: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]\r\n    REQUIRE_ARGUMENT_STRING(iArgs, 3, type);\r\n                                      ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8.h:2819:5: note: 'Utf8Value' has been explicitly marked deprecated here\r\n    V8_DEPRECATED(\"Use Isolate version\",\r\n    ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'\r\n  declarator __attribute__((deprecated))\r\n                            ^\r\n../src/node_printer_posix.cc:509:39: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]\r\n    REQUIRE_ARGUMENT_STRING(iArgs, 0, filename);\r\n                                      ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8.h:2819:5: note: 'Utf8Value' has been explicitly marked deprecated here\r\n    V8_DEPRECATED(\"Use Isolate version\",\r\n    ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'\r\n  declarator __attribute__((deprecated))\r\n                            ^\r\n../src/node_printer_posix.cc:510:39: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]\r\n    REQUIRE_ARGUMENT_STRING(iArgs, 1, docname);\r\n                                      ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8.h:2819:5: note: 'Utf8Value' has been explicitly marked deprecated here\r\n    V8_DEPRECATED(\"Use Isolate version\",\r\n    ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'\r\n  declarator __attribute__((deprecated))\r\n                            ^\r\n../src/node_printer_posix.cc:511:39: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]\r\n    REQUIRE_ARGUMENT_STRING(iArgs, 2, printer);\r\n                                      ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8.h:2819:5: note: 'Utf8Value' has been explicitly marked deprecated here\r\n    V8_DEPRECATED(\"Use Isolate version\",\r\n    ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'\r\n  declarator __attribute__((deprecated))\r\n                            ^\r\n13 warnings generated.\r\n../src/node_printer.cc:27:31: warning: 'Utf8Value' is deprecated [-Wdeprecated-declarations]\r\n        v8::String::Utf8Value data_str_v8(iV8Value->ToString());\r\n                              ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8.h:2819:5: note: 'Utf8Value' has been explicitly marked deprecated here\r\n    V8_DEPRECATED(\"Use Isolate version\",\r\n    ^\r\n/Users/user/.electron-gyp/iojs-3.0.0-nightly.20180821/deps/v8/include/v8config.h:321:29: note: expanded from macro 'V8_DEPRECATED'\r\n  declarator __attribute__((deprecated))\r\n                            ^\r\n1 warning generated.\r\nnode-pre-gyp WARN Using request for node-pre-gyp https download \r\nnode-pre-gyp WARN Tried to download(404): https://github.com/tessel/node-usb/releases/download/1.3.3/usb_bindings-v1.3.3-electron-v3.0-darwin-x64.tar.gz \r\nnode-pre-gyp WARN Pre-built binaries not found for usb@1.3.3 and electron@3.0.0-nightly.20180821 (electron-v3.0 ABI, unknown) (falling back to source compile with node-gyp) \r\nnode-pre-gyp WARN Pre-built binaries not installable for usb@1.3.3 and electron@3.0.0-nightly.20180821 (electron-v3.0 ABI, unknown) (falling back to source compile with node-gyp) \r\nnode-pre-gyp WARN Hit error Connection closed while downloading tarball file \r\n../libusb/libusb/core.c:../libusb/libusb/core.c:2241:35: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]\r\n2241:35: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]\r\n        if (header_len < 0 || header_len >= sizeof(buf)) {\r\n                              ~~~~~~~~~~ ^  ~~~~~~~~~~~\r\n../libusb/libusb/core.c:2250:44: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]\r\n        if (header_len < 0 || header_len >= sizeof(buf)) {\r\n                              ~~~~~~~~~~ ^  ~~~~~~~~~~~\r\n        if (text_len < 0 || text_len + header_len >= sizeof(buf)) {\r\n                            ~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~\r\n../libusb/libusb/core.c:2250:44: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]\r\n        if (text_len < 0 || text_len + header_len >= sizeof(buf)) {\r\n                            ~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~\r\n2 warnings generated.\r\n2 warnings generated.\r\nrm: ./Release/.deps/Release/obj.target/libusb/libusb/libusb/core.o.d.raw: No such file or directory\r\nmake: *** [Release/obj.target/libusb/libusb/libusb/core.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 (/usr/local/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:237:12)\r\ngyp ERR! System Darwin 17.7.0\r\ngyp ERR! command \"/usr/local/Cellar/node/10.7.0/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/Users/user/myapp/app/node_modules/usb/src/binding/usb_bindings.node\" \"--module_name=usb_bindings\" \"--module_path=/Users/user/myapp/app/node_modules/usb/src/binding\" \"--napi_version=3\" \"--node_abi_napi=napi\"\r\ngyp ERR! cwd /Users/user/myapp/app/node_modules/usb\r\ngyp ERR! node -v v10.7.0\r\ngyp ERR! node-gyp -v v3.8.0\r\ngyp ERR! not ok \r\nnode-pre-gyp ERR! build error \r\nnode-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/10.7.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/user/myapp/app/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/Users/user/myapp/app/node_modules/usb/src/binding --napi_version=3 --node_abi_napi=napi' (1)\r\nnode-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/user/myapp/app/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:248:5)\r\nnode-pre-gyp ERR! System Darwin 17.7.0\r\nnode-pre-gyp ERR! command \"/usr/local/Cellar/node/10.7.0/bin/node\" \"/Users/user/myapp/app/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\r\nnode-pre-gyp ERR! cwd /Users/user/myapp/app/node_modules/usb\r\nnode-pre-gyp ERR! node -v v10.7.0\r\nnode-pre-gyp ERR! node-pre-gyp -v v0.10.3\r\nnode-pre-gyp ERR! not ok \r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 1\r\nnpm ERR! usb@1.3.3 install: `node-pre-gyp install --fallback-to-build`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the usb@1.3.3 install script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n```"},"comment":{"url":"https://api.github.com/repos/electron-userland/electron-builder/issues/comments/419638990","html_url":"https://github.com/electron-userland/electron-builder/issues/3297#issuecomment-419638990","issue_url":"https://api.github.com/repos/electron-userland/electron-builder/issues/3297","id":419638990,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTYzODk5MA==","user":{"login":"bigpower","id":4292970,"node_id":"MDQ6VXNlcjQyOTI5NzA=","avatar_url":"https://avatars1.githubusercontent.com/u/4292970?v=4","gravatar_id":"","url":"https://api.github.com/users/bigpower","html_url":"https://github.com/bigpower","followers_url":"https://api.github.com/users/bigpower/followers","following_url":"https://api.github.com/users/bigpower/following{/other_user}","gists_url":"https://api.github.com/users/bigpower/gists{/gist_id}","starred_url":"https://api.github.com/users/bigpower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigpower/subscriptions","organizations_url":"https://api.github.com/users/bigpower/orgs","repos_url":"https://api.github.com/users/bigpower/repos","events_url":"https://api.github.com/users/bigpower/events{/privacy}","received_events_url":"https://api.github.com/users/bigpower/received_events","type":"User","site_admin":false},"created_at":"2018-09-08T12:35:33Z","updated_at":"2018-09-08T12:35:33Z","author_association":"NONE","body":"before is right"}}
{"actor":{"display_login":"bigpower"}}