{"action":"created","issue":{"url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/387","labels_url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/387/labels{/name}","comments_url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/387/comments","events_url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/387/events","html_url":"https://github.com/JustinTulloss/zeromq.node/issues/387","id":54549894,"number":387,"title":"io.js support","user":{"login":"timoxley","id":43438,"avatar_url":"https://avatars.githubusercontent.com/u/43438?v=3","gravatar_id":"","url":"https://api.github.com/users/timoxley","html_url":"https://github.com/timoxley","followers_url":"https://api.github.com/users/timoxley/followers","following_url":"https://api.github.com/users/timoxley/following{/other_user}","gists_url":"https://api.github.com/users/timoxley/gists{/gist_id}","starred_url":"https://api.github.com/users/timoxley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timoxley/subscriptions","organizations_url":"https://api.github.com/users/timoxley/orgs","repos_url":"https://api.github.com/users/timoxley/repos","events_url":"https://api.github.com/users/timoxley/events{/privacy}","received_events_url":"https://api.github.com/users/timoxley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-01-16T08:06:47Z","updated_at":"2015-08-25T01:16:37Z","closed_at":"2015-01-21T02:35:49Z","body":"Updating the zeromq dependency on `nan` to 1.5.x introduces support for io.js, but seems some code changes are required to get this to successfully build on io.js 1.0.1.\r\n\r\n```\r\n> cd zeromq.node\r\n> npm install nan@latest --save\r\nnpm http request GET https://registry.npmjs.org/nan\r\nnpm http 304 https://registry.npmjs.org/nan\r\nnan@1.5.1 node_modules/nan\r\n> npm install\r\n\r\n> zmq@2.9.0 install /Users/timoxley/Projects/libs/zeromq.node\r\n> node-gyp rebuild\r\n\r\nchild_process: customFds option is deprecated, use stdio instead.\r\n  CXX(target) Release/obj.target/zmq/binding.o\r\nIn file included from ../binding.cc:37:\r\nIn file included from ../node_modules/nan/nan.h:63:\r\n../node_modules/nan/nan_new.h:184:10: error: call to 'New' is ambiguous\r\n  return NanIntern::Factory<T>::New(arg0);\r\n         ^~~~~~~~~~~~~~~~~~~~~~~~~~\r\n../binding.cc:546:12: note: in instantiation of function template specialization 'NanNew<v8::Integer, long long>' requested here\r\n    return NanNew<Integer>(value);\r\n           ^\r\n../binding.cc:601:30: note: in instantiation of function template specialization 'zmq::Socket::GetSockOpt<long long>' requested here\r\n      NanReturnValue(socket->GetSockOpt<int64_t>(option));\r\n                             ^\r\n../node_modules/nan/nan.h:231:65: note: expanded from macro 'NanReturnValue'\r\n# define NanReturnValue(value) return args.GetReturnValue().Set(value)\r\n                                                                ^\r\n../node_modules/nan/nan_new.h:86:26: note: candidate function\r\n  static inline return_t New(int32_t value);\r\n                         ^\r\n../node_modules/nan/nan_new.h:87:26: note: candidate function\r\n  static inline return_t New(uint32_t value);\r\n                         ^\r\n../node_modules/nan/nan_new.h:184:10: error: call to 'New' is ambiguous\r\n  return NanIntern::Factory<T>::New(arg0);\r\n         ^~~~~~~~~~~~~~~~~~~~~~~~~~\r\n../binding.cc:546:12: note: in instantiation of function template specialization 'NanNew<v8::Integer, unsigned long long>' requested here\r\n    return NanNew<Integer>(value);\r\n           ^\r\n../binding.cc:603:30: note: in instantiation of function template specialization 'zmq::Socket::GetSockOpt<unsigned long long>' requested here\r\n      NanReturnValue(socket->GetSockOpt<uint64_t>(option));\r\n                             ^\r\n../node_modules/nan/nan.h:231:65: note: expanded from macro 'NanReturnValue'\r\n# define NanReturnValue(value) return args.GetReturnValue().Set(value)\r\n                                                                ^\r\n../node_modules/nan/nan_new.h:86:26: note: candidate function\r\n  static inline return_t New(int32_t value);\r\n                         ^\r\n../node_modules/nan/nan_new.h:87:26: note: candidate function\r\n  static inline return_t New(uint32_t value);\r\n                         ^\r\n2 errors generated.\r\nmake: *** [Release/obj.target/zmq/binding.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:267:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:98:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1038:12)\r\ngyp ERR! System Darwin 14.1.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/timoxley/Projects/libs/zeromq.node\r\ngyp ERR! node -v v1.0.1\r\ngyp ERR! node-gyp -v v1.0.2\r\ngyp ERR! not ok\r\n\r\nnpm ERR! Darwin 14.1.0\r\nnpm ERR! argv \"node\" \"/usr/local/bin/npm\" \"install\"\r\nnpm ERR! node v1.0.1\r\nnpm ERR! npm  v2.1.18\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! zmq@2.9.0 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the zmq@2.9.0 install script 'node-gyp rebuild'.\r\nnpm ERR! This is most likely a problem with the zmq 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 zmq\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/timoxley/Projects/libs/zeromq.node/npm-debug.log\r\n```"},"comment":{"url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/comments/134435783","html_url":"https://github.com/JustinTulloss/zeromq.node/issues/387#issuecomment-134435783","issue_url":"https://api.github.com/repos/JustinTulloss/zeromq.node/issues/387","id":134435783,"user":{"login":"ronkorving","id":631240,"avatar_url":"https://avatars.githubusercontent.com/u/631240?v=3","gravatar_id":"","url":"https://api.github.com/users/ronkorving","html_url":"https://github.com/ronkorving","followers_url":"https://api.github.com/users/ronkorving/followers","following_url":"https://api.github.com/users/ronkorving/following{/other_user}","gists_url":"https://api.github.com/users/ronkorving/gists{/gist_id}","starred_url":"https://api.github.com/users/ronkorving/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronkorving/subscriptions","organizations_url":"https://api.github.com/users/ronkorving/orgs","repos_url":"https://api.github.com/users/ronkorving/repos","events_url":"https://api.github.com/users/ronkorving/events{/privacy}","received_events_url":"https://api.github.com/users/ronkorving/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T01:16:37Z","updated_at":"2015-08-25T01:16:37Z","body":"Oh by the way, you can always install the latest master of node-zmq straight from GitHub:\r\n\r\n```sh\r\nnpm install JustinTulloss/zeromq.node\r\n```"}}