{"action":"created","issue":{"url":"https://api.github.com/repos/raceconditions/StellarSocks/issues/1","repository_url":"https://api.github.com/repos/raceconditions/StellarSocks","labels_url":"https://api.github.com/repos/raceconditions/StellarSocks/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/raceconditions/StellarSocks/issues/1/comments","events_url":"https://api.github.com/repos/raceconditions/StellarSocks/issues/1/events","html_url":"https://github.com/raceconditions/StellarSocks/issues/1","id":171076422,"number":1,"title":"Failing to install on raspbian:jessie and node 6.3.1","user":{"login":"nmajin","id":253669,"avatar_url":"https://avatars.githubusercontent.com/u/253669?v=3","gravatar_id":"","url":"https://api.github.com/users/nmajin","html_url":"https://github.com/nmajin","followers_url":"https://api.github.com/users/nmajin/followers","following_url":"https://api.github.com/users/nmajin/following{/other_user}","gists_url":"https://api.github.com/users/nmajin/gists{/gist_id}","starred_url":"https://api.github.com/users/nmajin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmajin/subscriptions","organizations_url":"https://api.github.com/users/nmajin/orgs","repos_url":"https://api.github.com/users/nmajin/repos","events_url":"https://api.github.com/users/nmajin/events{/privacy}","received_events_url":"https://api.github.com/users/nmajin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-14T20:16:30Z","updated_at":"2016-08-19T18:47:22Z","closed_at":null,"body":"I am trying to install on a fresh raspbian image and I seem to get an error when installing serialport. This is my logs of the install below. When I tried to install on Node 0.10.x everything installed fine but I still hit some road blocks. Any idea how I can install this?\r\n\r\n```\r\npi@raspberrypi:/usr/src/app $ sudo npm install stellar-socks\r\n\r\n> serialport@1.4.10 install /usr/src/app/node_modules/serialport\r\n> node-pre-gyp install --fallback-to-build\r\n\r\n(node:1647) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead.\r\ngyp WARN EACCES user \"root\" does not have permission to access the dev dir \"/root/.node-gyp/6.3.1\"\r\ngyp WARN EACCES attempting to reinstall using temporary dev dir \"/usr/src/app/node_modules/serialport/.node-gyp\"\r\nmake: Entering directory '/usr/src/app/node_modules/serialport/build'\r\n  CXX(target) Release/obj.target/serialport/src/serialport.o\r\nIn file included from ../src/serialport.h:5:0,\r\n                 from ../src/serialport.cpp:3:\r\n../../nan/nan.h: In function ‘v8::Local<v8::Signature> NanNew(v8::Handle<v8::FunctionTemplate>, int, v8::Handle<v8::FunctionTemplate>*)’:\r\n../../nan/nan.h:189:78: error: no matching function for call to ‘v8::Signature::New(v8::Isolate*, v8::Handle<v8::FunctionTemplate>&, int&, v8::Handle<v8::FunctionTemplate>*&)’\r\n     return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);\r\n                                                                              ^\r\n../../nan/nan.h:189:78: note: candidate is:\r\nIn file included from /usr/src/app/node_modules/serialport/.node-gyp/6.3.1/include/node/node.h:42:0,\r\n                 from ../../nan/nan.h:23,\r\n                 from ../src/serialport.h:5,\r\n                 from ../src/serialport.cpp:3:\r\n/usr/src/app/node_modules/serialport/.node-gyp/6.3.1/include/node/v8.h:4798:27: note: static v8::Local<v8::Signature> v8::Signature::New(v8::Isolate*, v8::Local<v8::FunctionTemplate>)\r\n   static Local<Signature> New(\r\n                           ^\r\n/usr/src/app/node_modules/serialport/.node-gyp/6.3.1/include/node/v8.h:4798:27: note:   candidate expects 2 arguments, 4 provided\r\nIn file included from ../src/serialport.h:5:0,\r\n                 from ../src/serialport.cpp:3:\r\n../../nan/nan.h: At global scope:\r\n../../nan/nan.h:271:3: error: redefinition of ‘v8::Local<T> NanNew(P) [with T = v8::StringObject; P = v8::Local<v8::String>]’\r\n   NanNew<v8::StringObject, v8::Handle<v8::String> >(\r\n   ^\r\n../../nan/nan.h:264:3: note: ‘v8::Local<T> NanNew(P) [with T = v8::StringObject; P = v8::Local<v8::String>]’ previously declared here\r\n   NanNew<v8::StringObject, v8::Local<v8::String> >(\r\n   ^\r\n../../nan/nan.h:289:36: error: redefinition of ‘template<class T> v8::Local<v8::RegExp> NanNew(v8::Local<v8::String>, v8::RegExp::Flags)’\r\n   NAN_INLINE v8::Local<v8::RegExp> NanNew(\r\n                                    ^\r\n../../nan/nan.h:283:36: note: ‘template<class T> v8::Local<v8::RegExp> NanNew(v8::Handle<v8::String>, v8::RegExp::Flags)’ previously declared here\r\n   NAN_INLINE v8::Local<v8::RegExp> NanNew(\r\n                                    ^\r\n../../nan/nan.h:301:36: error: redefinition of ‘template<class T, class P> v8::Local<v8::RegExp> NanNew(v8::Local<v8::String>, v8::RegExp::Flags)’\r\n   NAN_INLINE v8::Local<v8::RegExp> NanNew(\r\n                                    ^\r\n../../nan/nan.h:295:36: note: ‘template<class T, class P> v8::Local<v8::RegExp> NanNew(v8::Handle<v8::String>, v8::RegExp::Flags)’ previously declared here\r\n   NAN_INLINE v8::Local<v8::RegExp> NanNew(\r\n                                    ^\r\n../../nan/nan.h:481:19: error: ‘NanNew’ declared as an ‘inline’ variable\r\n       v8::String::ExternalAsciiStringResource *resource) {\r\n                   ^\r\n../../nan/nan.h:481:19: warning: ‘always_inline’ attribute ignored [-Wattributes]\r\n../../nan/nan.h:481:19: error: ‘v8::Local<v8::String> NanNew’ redeclared as different kind of symbol\r\n../../nan/nan.h:475:36: note: previous declaration ‘v8::Local<v8::String> NanNew(v8::String::ExternalStringResource*)’\r\n   NAN_INLINE v8::Local<v8::String> NanNew(\r\n                                    ^\r\n../../nan/nan.h:481:7: error: ‘ExternalAsciiStringResource’ is not a member of ‘v8::String’\r\n       v8::String::ExternalAsciiStringResource *resource) {\r\n       ^\r\n../../nan/nan.h:481:48: error: ‘resource’ was not declared in this scope\r\n       v8::String::ExternalAsciiStringResource *resource) {\r\n                                                ^\r\n../../nan/nan.h:495:27: error: redefinition of ‘template<class T> v8::Local<T> _NanEscapeScopeHelper(v8::Local<T>)’\r\n   NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {\r\n                           ^\r\n../../nan/nan.h:490:27: note: ‘template<class T> v8::Local<T> _NanEscapeScopeHelper(v8::Handle<T>)’ previously declared here\r\n   NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Handle<T> val) {\r\n                           ^\r\n../../nan/nan.h:567:20: error: variable or field ‘NanAddGCEpilogueCallback’ declared void\r\n       v8::Isolate::GCEpilogueCallback callback\r\n                    ^\r\n../../nan/nan.h:567:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’\r\n       v8::Isolate::GCEpilogueCallback callback\r\n       ^\r\n../../nan/nan.h:568:18: error: expected primary-expression before ‘gc_type_filter’\r\n     , v8::GCType gc_type_filter = v8::kGCTypeAll) {\r\n                  ^\r\n../../nan/nan.h:573:20: error: variable or field ‘NanRemoveGCEpilogueCallback’ declared void\r\n       v8::Isolate::GCEpilogueCallback callback) {\r\n                    ^\r\n../../nan/nan.h:573:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’\r\n       v8::Isolate::GCEpilogueCallback callback) {\r\n       ^\r\n../../nan/nan.h:578:20: error: variable or field ‘NanAddGCPrologueCallback’ declared void\r\n       v8::Isolate::GCPrologueCallback callback\r\n                    ^\r\n../../nan/nan.h:578:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’\r\n       v8::Isolate::GCPrologueCallback callback\r\n       ^\r\n../../nan/nan.h:579:18: error: expected primary-expression before ‘gc_type_filter’\r\n     , v8::GCType gc_type_filter = v8::kGCTypeAll) {\r\n                  ^\r\n../../nan/nan.h:584:20: error: variable or field ‘NanRemoveGCPrologueCallback’ declared void\r\n       v8::Isolate::GCPrologueCallback callback) {\r\n                    ^\r\n../../nan/nan.h:584:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’\r\n       v8::Isolate::GCPrologueCallback callback) {\r\n       ^\r\n../../nan/nan.h:755:13: error: ‘node::smalloc’ has not been declared\r\n     , node::smalloc::FreeCallback callback\r\n             ^\r\n../../nan/nan.h:755:35: error: expected ‘,’ or ‘...’ before ‘callback’\r\n     , node::smalloc::FreeCallback callback\r\n                                   ^\r\n../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:\r\n../../nan/nan.h:759:50: error: ‘callback’ was not declared in this scope\r\n         v8::Isolate::GetCurrent(), data, length, callback, hint);\r\n                                                  ^\r\n../../nan/nan.h:759:60: error: ‘hint’ was not declared in this scope\r\n         v8::Isolate::GetCurrent(), data, length, callback, hint);\r\n                                                            ^\r\n../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:\r\n../../nan/nan.h:766:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]\r\n     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);\r\n                                                                   ^\r\nIn file included from ../../nan/nan.h:24:0,\r\n                 from ../src/serialport.h:5,\r\n                 from ../src/serialport.cpp:3:\r\n/usr/src/app/node_modules/serialport/.node-gyp/6.3.1/include/node/node_buffer.h:46:40: note: initializing argument 2 of ‘v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t)’\r\n NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,\r\n                                        ^\r\nIn file included from ../src/serialport.h:5:0,\r\n                 from ../src/serialport.cpp:3:\r\n../../nan/nan.h:766:67: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((char*)data), size)’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’\r\n     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);\r\n                                                                   ^\r\n../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:\r\n../../nan/nan.h:770:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), size)’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’\r\n     return node::Buffer::New(v8::Isolate::GetCurrent(), size);\r\n                                                             ^\r\n../../nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:\r\n../../nan/nan.h:777:12: error: ‘Use’ is not a member of ‘node::Buffer’\r\n     return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);\r\n            ^\r\n../../nan/nan.h: In function ‘bool _NanGetExternalParts(v8::Handle<v8::Value>, const char**, size_t*)’:\r\n../../nan/nan.h:2103:12: error: ‘class v8::String’ has no member named ‘IsExternalAscii’\r\n   if (str->IsExternalAscii()) {\r\n            ^\r\n../../nan/nan.h:2104:23: error: ‘ExternalAsciiStringResource’ in ‘class v8::String’ does not name a type\r\n     const v8::String::ExternalAsciiStringResource* ext;\r\n                       ^\r\n../../nan/nan.h:2105:5: error: ‘ext’ was not declared in this scope\r\n     ext = str->GetExternalAsciiStringResource();\r\n     ^\r\n../../nan/nan.h:2105:16: error: ‘class v8::String’ has no member named ‘GetExternalAsciiStringResource’\r\n     ext = str->GetExternalAsciiStringResource();\r\n                ^\r\nserialport.target.mk:88: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed\r\nmake: *** [Release/obj.target/serialport/src/serialport.o] Error 1\r\nmake: Leaving directory '/usr/src/app/node_modules/serialport/build'\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/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)\r\ngyp ERR! stack     at emitTwo (events.js:106:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:191:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)\r\ngyp ERR! System Linux 4.4.11+\r\ngyp ERR! command \"/usr/local/node/bin/node\" \"/usr/local/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\" \"--name=serialport\" \"--configuration=Release\" \"--module_name=serialport\" \"--version=1.4.10\" \"--major=1\" \"--minor=4\" \"--patch=10\" \"--runtime=node\" \"--node_abi=node-v48\" \"--platform=linux\" \"--target_platform=linux\" \"--arch=arm\" \"--target_arch=arm\" \"--module_main=./serialport\" \"--host=https://node-serialport.s3.amazonaws.com/\" \"--module_path=/usr/src/app/node_modules/serialport/build/serialport/v1.4.10/Release/node-v48-linux-arm\" \"--remote_path=./serialport/v1.4.10/Release/\" \"--package_name=node-v48-linux-arm.tar.gz\" \"--staged_tarball=build/stage/serialport/v1.4.10/Release/node-v48-linux-arm.tar.gz\" \"--hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/\" \"--hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/node-v48-linux-arm.tar.gz\"\r\ngyp ERR! cwd /usr/src/app/node_modules/serialport\r\ngyp ERR! node -v v6.3.1\r\ngyp ERR! node-gyp -v v3.3.1\r\ngyp ERR! not ok \r\nnode-pre-gyp ERR! build error \r\nnode-pre-gyp ERR! stack Error: Failed to execute '/usr/local/node/bin/node rebuild --name=serialport --configuration=Release --module_name=serialport --version=1.4.10 --major=1 --minor=4 --patch=10 --runtime=node --node_abi=node-v48 --platform=linux --target_platform=linux --arch=arm --target_arch=arm --module_main=./serialport --host=https://node-serialport.s3.amazonaws.com/ --module_path=/usr/src/app/node_modules/serialport/build/serialport/v1.4.10/Release/node-v48-linux-arm --remote_path=./serialport/v1.4.10/Release/ --package_name=node-v48-linux-arm.tar.gz --staged_tarball=build/stage/serialport/v1.4.10/Release/node-v48-linux-arm.tar.gz --hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/ --hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/node-v48-linux-arm.tar.gz' (1)\r\nnode-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/src/app/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:76:29)\r\nnode-pre-gyp ERR! stack     at emitTwo (events.js:106:13)\r\nnode-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)\r\nnode-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:852:16)\r\nnode-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)\r\nnode-pre-gyp ERR! System Linux 4.4.11+\r\nnode-pre-gyp ERR! command \"/usr/local/node/bin/node\" \"/usr/src/app/node_modules/serialport/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\r\nnode-pre-gyp ERR! cwd /usr/src/app/node_modules/serialport\r\nnode-pre-gyp ERR! node -v v6.3.1\r\nnode-pre-gyp ERR! node-pre-gyp -v v0.5.19\r\nnode-pre-gyp ERR! not ok \r\nFailed to execute '/usr/local/node/bin/node rebuild --name=serialport --configuration=Release --module_name=serialport --version=1.4.10 --major=1 --minor=4 --patch=10 --runtime=node --node_abi=node-v48 --platform=linux --target_platform=linux --arch=arm --target_arch=arm --module_main=./serialport --host=https://node-serialport.s3.amazonaws.com/ --module_path=/usr/src/app/node_modules/serialport/build/serialport/v1.4.10/Release/node-v48-linux-arm --remote_path=./serialport/v1.4.10/Release/ --package_name=node-v48-linux-arm.tar.gz --staged_tarball=build/stage/serialport/v1.4.10/Release/node-v48-linux-arm.tar.gz --hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/ --hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/node-v48-linux-arm.tar.gz' (1)\r\n[               ...] - install: info lifecycle serialport@1.4.10~install: Failed to exec install script\r\nnpm WARN enoent ENOENT: no such file or directory, open '/usr/src/app/package.json'\r\nnpm WARN app No description\r\nnpm WARN app No repository field.\r\nnpm WARN app No README data\r\nnpm WARN app No license field.\r\nnpm WARN In serialport@1.4.10 replacing bundled version of readable-stream with readable-stream@1.0.34\r\nnpm ERR! Linux 4.4.11+\r\nnpm ERR! argv \"/usr/local/node/bin/node\" \"/usr/local/bin/npm\" \"install\" \"stellar-socks\"\r\nnpm ERR! node v6.3.1\r\nnpm ERR! npm  v3.10.3\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! serialport@1.4.10 install: `node-pre-gyp install --fallback-to-build`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the serialport@1.4.10 install script 'node-pre-gyp install --fallback-to-build'.\r\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\r\nnpm ERR! If you do, this is most likely a problem with the serialport package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-pre-gyp install --fallback-to-build\r\nnpm ERR! You can get information on how to open an issue for this project with:\r\nnpm ERR!     npm bugs serialport\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR!     npm owner ls serialport\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!     /usr/src/app/npm-debug.log\r\n```"},"comment":{"url":"https://api.github.com/repos/raceconditions/StellarSocks/issues/comments/241102525","html_url":"https://github.com/raceconditions/StellarSocks/issues/1#issuecomment-241102525","issue_url":"https://api.github.com/repos/raceconditions/StellarSocks/issues/1","id":241102525,"user":{"login":"PatchworkBoy","id":3514253,"avatar_url":"https://avatars.githubusercontent.com/u/3514253?v=3","gravatar_id":"","url":"https://api.github.com/users/PatchworkBoy","html_url":"https://github.com/PatchworkBoy","followers_url":"https://api.github.com/users/PatchworkBoy/followers","following_url":"https://api.github.com/users/PatchworkBoy/following{/other_user}","gists_url":"https://api.github.com/users/PatchworkBoy/gists{/gist_id}","starred_url":"https://api.github.com/users/PatchworkBoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PatchworkBoy/subscriptions","organizations_url":"https://api.github.com/users/PatchworkBoy/orgs","repos_url":"https://api.github.com/users/PatchworkBoy/repos","events_url":"https://api.github.com/users/PatchworkBoy/events{/privacy}","received_events_url":"https://api.github.com/users/PatchworkBoy/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T18:47:22Z","updated_at":"2016-08-19T18:47:22Z","body":"To be honest, you can just fire up Node-Red, link a ‘tcp' input node to a ‘serial' out node, and a ‘serial' in node to a ‘tcp' out node, set the tcp port numbers, and publish. Done. (This was my ultimate lazy solution when I couldn’t get this to build)."}}
{"actor":{"display_login":"PatchworkBoy"}}