{"action":"closed","issue":{"url":"https://api.github.com/repos/MadLittleMods/node-usb-detection/issues/24","labels_url":"https://api.github.com/repos/MadLittleMods/node-usb-detection/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/MadLittleMods/node-usb-detection/issues/24/comments","events_url":"https://api.github.com/repos/MadLittleMods/node-usb-detection/issues/24/events","html_url":"https://github.com/MadLittleMods/node-usb-detection/issues/24","id":129229380,"number":24,"title":"fails to build on Node >= 0.12.*","user":{"login":"morriswinkler","id":4302527,"avatar_url":"https://avatars.githubusercontent.com/u/4302527?v=3","gravatar_id":"","url":"https://api.github.com/users/morriswinkler","html_url":"https://github.com/morriswinkler","followers_url":"https://api.github.com/users/morriswinkler/followers","following_url":"https://api.github.com/users/morriswinkler/following{/other_user}","gists_url":"https://api.github.com/users/morriswinkler/gists{/gist_id}","starred_url":"https://api.github.com/users/morriswinkler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morriswinkler/subscriptions","organizations_url":"https://api.github.com/users/morriswinkler/orgs","repos_url":"https://api.github.com/users/morriswinkler/repos","events_url":"https://api.github.com/users/morriswinkler/events{/privacy}","received_events_url":"https://api.github.com/users/morriswinkler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-27T18:31:27Z","updated_at":"2016-01-27T18:40:32Z","closed_at":"2016-01-27T18:40:32Z","body":"> usb-detection@1.0.3 preinstall /Users/user/tmp/print-manager/spark-print-mgr/node_modules/usb-detection\r\n> node-gyp rebuild\r\n\r\n  CXX(target) Release/obj.target/detection/src/detection.o\r\nIn file included from ../src/detection.cpp:1:\r\n../src/detection.h:15:34: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\nv8::Handle<v8::Value> Find(const v8::Arguments& args);\r\n                                 ^~~~~~~~~~~~~\r\n                                 v8::internal::Arguments\r\n/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../src/detection.cpp:1:\r\n../src/detection.h:16:15: error: unknown type name 'uv_work_t'\r\nvoid EIO_Find(uv_work_t* req);\r\n              ^\r\n../src/detection.h:17:20: error: unknown type name 'uv_work_t'\r\nvoid EIO_AfterFind(uv_work_t* req);\r\n                   ^\r\n../src/detection.h:19:45: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\nv8::Handle<v8::Value> StartMonitoring(const v8::Arguments& args);\r\n                                            ^~~~~~~~~~~~~\r\n                                            v8::internal::Arguments\r\n/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../src/detection.cpp:1:\r\n../src/detection.h:21:44: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\nv8::Handle<v8::Value> StopMonitoring(const v8::Arguments& args);\r\n                                           ^~~~~~~~~~~~~\r\n                                           v8::internal::Arguments\r\n/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../src/detection.cpp:1:\r\n../src/detection.h:35:43: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\nv8::Handle<v8::Value> RegisterAdded(const v8::Arguments& args);\r\n                                          ^~~~~~~~~~~~~\r\n                                          v8::internal::Arguments\r\n/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../src/detection.cpp:1:\r\n../src/detection.h:37:45: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\nv8::Handle<v8::Value> RegisterRemoved(const v8::Arguments& args);\r\n                                            ^~~~~~~~~~~~~\r\n                                            v8::internal::Arguments\r\n/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\n../src/detection.cpp:19:43: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\nv8::Handle<v8::Value> RegisterAdded(const v8::Arguments& args)\r\n                                          ^~~~~~~~~~~~~\r\n                                          v8::internal::Arguments\r\n/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\n../src/detection.cpp:21:19: error: calling a protected constructor of class 'v8::HandleScope'\r\n  v8::HandleScope scope;\r\n                  ^\r\n/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:816:13: note: declared protected here\r\n  V8_INLINE HandleScope() {}\r\n            ^\r\n../src/detection.cpp:25:11: error: member access into incomplete type 'const v8::internal::Arguments'\r\n  if (args.Length() == 0)\r\n          ^\r\n/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note: forward declaration of 'v8::internal::Arguments'\r\nclass Arguments;\r\n      ^\r\n../src/detection.cpp:27:18: error: no member named 'Close' in 'v8::HandleScope'\r\n    return scope.Close(v8::ThrowException(v8::Exception::TypeError(v8::String::New(\"First argument must be a function\"))));\r\n           ~~~~~ ^\r\n../src/detection.cpp:27:28: error: no member named 'ThrowException' in namespace 'v8'\r\n    return scope.Close(v8::ThrowException(v8::Exception::TypeError(v8::String::New(\"First argument must be a function\"))));\r\n                       ~~~~^\r\n../src/detection.cpp:27:80: error: no member named 'New' in 'v8::String'\r\n    return scope.Close(v8::ThrowException(v8::Exception::TypeError(v8::String::New(\"First argument must be a function\"))));\r\n                                                                   ~~~~~~~~~~~~^\r\n../src/detection.cpp:30:11: error: member access into incomplete type 'const v8::internal::Arguments'\r\n  if (args.Length() == 1)\r\n          ^\r\n/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note: forward declaration of 'v8::internal::Arguments'\r\nclass Arguments;\r\n      ^\r\n../src/detection.cpp:33:13: error: type 'const v8::internal::Arguments' does not provide a subscript operator\r\n    if(!args[0]->IsFunction())\r\n        ~~~~^~\r\n../src/detection.cpp:35:22: error: no member named 'Close' in 'v8::HandleScope'\r\n        return scope.Close(v8::ThrowException(v8::Exception::TypeError(v8::String::New(\"First argument must be a function\"))));\r\n               ~~~~~ ^\r\n../src/detection.cpp:35:32: error: no member named 'ThrowException' in namespace 'v8'\r\n        return scope.Close(v8::ThrowException(v8::Exception::TypeError(v8::String::New(\"First argument must be a function\"))));\r\n                           ~~~~^\r\n../src/detection.cpp:35:84: error: no member named 'New' in 'v8::String'\r\n        return scope.Close(v8::ThrowException(v8::Exception::TypeError(v8::String::New(\"First argument must be a function\"))));\r\n                                                                       ~~~~~~~~~~~~^\r\n../src/detection.cpp:38:20: error: type 'const v8::internal::Arguments' does not provide a subscript operator\r\n    callback = args[0];\r\n               ~~~~^~\r\nfatal error: too many errors emitted, stopping now [-ferror-limit=]\r\n20 errors generated.\r\nmake: *** [Release/obj.target/detection/src/detection.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:269:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:110:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)\r\ngyp ERR! System Darwin 13.4.0\r\ngyp ERR! command \"node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /Users/user/tmp/print-manager/spark-print-mgr/node_modules/usb-detection\r\ngyp ERR! node -v v0.12.7\r\ngyp ERR! node-gyp -v v2.0.2\r\ngyp ERR! not ok\r\nnpm ERR! Darwin 13.4.0\r\nnpm ERR! argv \"node\" \"/usr/local/bin/npm\" \"install\" \"usb-detection\"\r\nnpm ERR! node v0.12.7\r\nnpm ERR! npm  v2.14.2\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! usb-detection@1.0.3 preinstall: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the usb-detection@1.0.3 preinstall script 'node-gyp rebuild'.\r\nnpm ERR! This is most likely a problem with the usb-detection package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-gyp rebuild\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls usb-detection\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /Users/user/tmp/print-manager/spark-print-mgr/npm-debug.log\r\n\r\nplease see https://github.com/jiangmiao/node-curl/issues/38 "}}