In file included from ../src/bufferutil.cc:15:0: ../../nan/nan.h: In function 'v8::Local NanNew(v8::Handle, int, v8::Handle*)': ../../nan/nan.h:337:64: error: no matching function for call to 'v8::Signature::New(v8::Isolate*&, v8::Handle&, int&, v8::Handle*&)' return v8::Signature::New(nan_isolate, receiver, argc, argv); ^ ../../nan/nan.h:337:64: note: candidate is: In file included from ../src/bufferutil.cc:7:0: /home/fabien/.node-gyp/5.0.0/include/node/v8.h:4674:27: note: static v8::Local v8::Signature::New(v8::Isolate*, v8::Local) static Local New( ^ /home/fabien/.node-gyp/5.0.0/include/node/v8.h:4674:27: note: candidate expects 2 arguments, 4 provided In file included from ../src/bufferutil.cc:15:0: ../../nan/nan.h: At global scope: ../../nan/nan.h:409:19: error: 'NanNew' declared as an 'inline' variable v8::String::ExternalAsciiStringResource *resource) { ^ ../../nan/nan.h:409:19: warning: 'always_inline' attribute ignored [-Wattributes] ../../nan/nan.h:409:19: error: 'v8::Local NanNew' redeclared as different kind of symbol ../../nan/nan.h:403:36: note: previous declaration 'v8::Local NanNew(v8::String::ExternalStringResource*)' NAN_INLINE v8::Local NanNew( ^ ../../nan/nan.h:409:7: error: 'ExternalAsciiStringResource' is not a member of 'v8::String' v8::String::ExternalAsciiStringResource *resource) { ^ ../../nan/nan.h:409:48: error: 'resource' was not declared in this scope v8::String::ExternalAsciiStringResource *resource) { ^ ../../nan/nan.h:427:3: error: redefinition of 'v8::Local NanNew(P) [with T = v8::StringObject; P = v8::Local]' NanNew >( ^ ../../nan/nan.h:420:3: note: 'v8::Local NanNew(P) [with T = v8::StringObject; P = v8::Local]' previously declared here NanNew >( ^ ../../nan/nan.h:444:36: error: redefinition of 'template v8::Local NanNew(v8::Local, v8::RegExp::Flags)' NAN_INLINE v8::Local NanNew( ^ ../../nan/nan.h:438:36: note: 'template v8::Local NanNew(v8::Handle, v8::RegExp::Flags)' previously declared here NAN_INLINE v8::Local NanNew( ^ ../../nan/nan.h:456:36: error: redefinition of 'template v8::Local NanNew(v8::Local, v8::RegExp::Flags)' NAN_INLINE v8::Local NanNew( ^ ../../nan/nan.h:450:36: note: 'template v8::Local NanNew(v8::Handle, v8::RegExp::Flags)' previously declared here NAN_INLINE v8::Local NanNew( ^ ../../nan/nan.h:767:13: error: 'node::smalloc' has not been declared , node::smalloc::FreeCallback callback ^ ../../nan/nan.h:767:35: error: expected ',' or '...' before 'callback' , node::smalloc::FreeCallback callback ^ ../../nan/nan.h: In function 'v8::Local NanNewBufferHandle(char*, size_t, int)': ../../nan/nan.h:770:57: error: 'callback' was not declared in this scope return node::Buffer::New(nan_isolate, data, length, callback, hint); ^ ../../nan/nan.h:770:67: error: 'hint' was not declared in this scope return node::Buffer::New(nan_isolate, data, length, callback, hint); ^ ../../nan/nan.h: In function 'v8::Local NanNewBufferHandle(const char*, uint32_t)': ../../nan/nan.h:777:53: error: call of overloaded 'New(v8::Isolate*&, const char*&, uint32_t&)' is ambiguous return node::Buffer::New(nan_isolate, data, size); ^ ../../nan/nan.h:777:53: note: candidates are: In file included from ../src/bufferutil.cc:9:0: /home/fabien/.node-gyp/5.0.0/include/node/node_buffer.h:31:40: note: v8::MaybeLocal node::Buffer::New(v8::Isolate*, v8::Local, node::encoding) NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate, ^ /home/fabien/.node-gyp/5.0.0/include/node/node_buffer.h:31:40: note: no known conversion for argument 3 from 'uint32_t {aka unsigned int}' to 'node::encoding' /home/fabien/.node-gyp/5.0.0/include/node/node_buffer.h:43:40: note: v8::MaybeLocal node::Buffer::New(v8::Isolate*, char*, size_t) NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate, ^ /home/fabien/.node-gyp/5.0.0/include/node/node_buffer.h:43:40: note: no known conversion for argument 2 from 'const char*' to 'char*' In file included from ../src/bufferutil.cc:15:0: ../../nan/nan.h: In function 'v8::Local NanNewBufferHandle(uint32_t)': ../../nan/nan.h:781:47: error: could not convert 'node::Buffer::New(nan_isolate, ((size_t)size))' from 'v8::MaybeLocal' to 'v8::Local' return node::Buffer::New(nan_isolate, size); ^ ../../nan/nan.h: In function 'v8::Local NanBufferUse(char*, uint32_t)': ../../nan/nan.h:788:12: error: 'Use' is not a member of 'node::Buffer' return node::Buffer::Use(nan_isolate, data, size); ^ ../../nan/nan.h: In function 'bool _NanGetExternalParts(v8::Handle, const char**, size_t*)': ../../nan/nan.h:1728:12: error: 'class v8::String' has no member named 'IsExternalAscii' if (str->IsExternalAscii()) { ^ ../../nan/nan.h:1729:23: error: 'ExternalAsciiStringResource' in 'class v8::String' does not name a type const v8::String::ExternalAsciiStringResource* ext; ^ ../../nan/nan.h:1730:5: error: 'ext' was not declared in this scope ext = str->GetExternalAsciiStringResource(); ^ ../../nan/nan.h:1730:16: error: 'class v8::String' has no member named 'GetExternalAsciiStringResource' ext = str->GetExternalAsciiStringResource(); ^ make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 3.10.23-xxxx-std-ipv6-64 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/fabien/Prototypes/HourGlass/node/node_modules/ws gyp ERR! node -v v5.0.0 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok