The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

438536 (7) [Avatar] Offline
#1
I have build the part1-2-direct-gateway from github code on my laptop after reading chapter 7 on "creating a WoT server"section . I have the below errors after I run npm install on the part1-2-direct-gateway folder. Any advise is greatly appreciated? Thanks.


E:\wot-book\chapter7-implementation\part1-2-direct-gateway>npm install

> bufferutil@1.1.0 install E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil
> node-gyp rebuild


E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil>if not defined npm_config_node_gyp (node "E:\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
bufferutil.cc
win_delay_load_hook.cc
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan_new.h(34): warning C4996: 'v8::Value::ToInt32': was declared deprec
ated (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(2020) : see declaration of 'v8::Value::ToInt32'
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan_new.h(39): warning C4996: 'v8::Value::ToUint32': was declared depre
cated (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj] C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(2019) : see declaration of 'v8::Value::ToUint32'
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan_implementation_12_inl.h(49): warning C4996: 'v8::BooleanObject::New
': was declared deprecated (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(400smilie : see declaration of 'v8::BooleanObject::New'
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan_implementation_12_inl.h(166): warning C4996: 'v8::ScriptCompiler::C
ompile': was declared deprecated (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(1355) : see declaration of 'v8::ScriptCompiler::Compile'
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan_implementation_12_inl.h(173): warning C4996: 'v8::ScriptCompiler::C
ompile': was declared deprecated (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(1355) : see declaration of 'v8::ScriptCompiler::Compile'
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan_implementation_12_inl.h(206): warning C4996: 'v8::String::NewFromOn
eByte': was declared deprecated (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(2336) : see declaration of 'v8::String::NewFromOneByte'
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan_implementation_12_inl.h(217): warning C4996: 'v8::String::NewExtern
al': was declared deprecated (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(2373) : see declaration of 'v8::String::NewExternal'
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan_implementation_12_inl.h(237): warning C4996: 'v8::ScriptCompiler::C
ompileUnbound': was declared deprecated (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj
]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(1336) : see declaration of 'v8::ScriptCompiler::CompileUnbound'
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan_implementation_12_inl.h(244): warning C4996: 'v8::ScriptCompiler::C
ompileUnbound': was declared deprecated (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj
]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(1336) : see declaration of 'v8::ScriptCompiler::CompileUnbound'
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(263): error C2995: 'v8::Local<T> _NanEnsureLocal(v8::Local<T>smilie' :
function template has already been defined (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcx
proj] E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(256) : see declaration of '_NanEnsureLocal'
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(473): error C2039: 'GCEpilogueCallback' : is not a member of 'v8:
:Isolate' (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(5443) : see declaration of 'v8::Isolate'
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(473): error C2065: 'GCEpilogueCallback' : undeclared identifier (
..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(474): error C2146: syntax error : missing ')' before identifier '
callback' (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(474): error C2182: 'NanAddGCEpilogueCallback' : illegal use of ty
pe 'void' (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(474): error C2433: 'NanAddGCEpilogueCallback' : '__forceinline' n
ot permitted on data declarations (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(474): error C2059: syntax error : ')' (..\src\bufferutil.cc) [E:\
wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(474): error C2143: syntax error : missing ';' before '{' (..\src\
bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(474): error C2447: '{' : missing function header (old-style forma
l list?) (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(479): error C2039: 'GCEpilogueCallback' : is not a member of 'v8:
:Isolate' (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(5443) : see declaration of 'v8::Isolate'
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(479): error C2065: 'GCEpilogueCallback' : undeclared identifier (
..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(479): error C2146: syntax error : missing ')' before identifier '
callback' (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(479): error C2182: 'NanRemoveGCEpilogueCallback' : illegal use of
type 'void' (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj] E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(479): error C2433: 'NanRemoveGCEpilogueCallback' : '__forceinline
' not permitted on data declarations (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(479): error C2059: syntax error : ')' (..\src\bufferutil.cc) [E:\
wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(479): error C2143: syntax error : missing ';' before '{' (..\src\
bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(479): error C2447: '{' : missing function header (old-style forma
l list?) (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(484): error C2039: 'GCPrologueCallback' : is not a member of 'v8:
:Isolate' (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(5443) : see declaration of 'v8::Isolate'
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(484): error C2065: 'GCPrologueCallback' : undeclared identifier (
..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(485): error C2146: syntax error : missing ')' before identifier '
callback' (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(485): error C2182: 'NanAddGCPrologueCallback' : illegal use of ty
pe 'void' (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(485): error C2433: 'NanAddGCPrologueCallback' : '__forceinline' n
ot permitted on data declarations (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(485): error C2059: syntax error : ')' (..\src\bufferutil.cc) [E:\
wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(485): error C2143: syntax error : missing ';' before '{' (..\src\
bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(485): error C2447: '{' : missing function header (old-style forma
l list?) (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(490): error C2039: 'GCPrologueCallback' : is not a member of 'v8:
:Isolate' (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(5443) : see declaration of 'v8::Isolate'
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(490): error C2065: 'GCPrologueCallback' : undeclared identifier (
..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(490): error C2146: syntax error : missing ')' before identifier '
callback' (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(490): error C2182: 'NanRemoveGCPrologueCallback' : illegal use of
type 'void' (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(490): error C2433: 'NanRemoveGCPrologueCallback' : '__forceinline
' not permitted on data declarations (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(490): error C2059: syntax error : ')' (..\src\bufferutil.cc) [E:\
wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(490): error C2143: syntax error : missing ';' before '{' (..\src\
bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(490): error C2447: '{' : missing function header (old-style forma
l list?) (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(661): error C3083: 'smalloc': the symbol to the left of a '::' mu
st be a type (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(661): error C2039: 'FreeCallback' : is not a member of 'node' (..
\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(661): error C2061: syntax error : identifier 'FreeCallback' (..\s
rc\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(665): error C2065: 'callback' : undeclared identifier (..\src\buf
ferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(665): error C2065: 'hint' : undeclared identifier (..\src\bufferu
til.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(672): error C2665: 'node::Buffer::New' : none of the 4 overloads
could convert all the argument types (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\node_buffer.h(46): could be 'v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,char *,size_t)'
C:\Users\tanwm\.node-gyp\6.10.3\include\node\node_buffer.h(34): or 'v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,v8::Local<v8::String>,node::
encoding)'
while trying to match the argument list '(v8::Isolate *, const char *, uint32_t)'
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(676): error C2664: 'v8::Local<v8::Object>::Local(const v8::Local<
v8::Object> &)' : cannot convert argument 1 from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object> &' (..\src\bufferutil.cc) [E:\wot-book\chapter7-implementatio
n\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
Reason: cannot convert from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object>'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(683): error C2039: 'Use' : is not a member of 'node::Buffer' (..\
src\bufferutil.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\node_modules\nan\nan.h(683): error C3861: 'Use': identifier not found (..\src\bufferutil
.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil\build\bufferutil.vcxproj]
..\src\bufferutil.cc(30): error C2668: 'node::NODE_SET_METHOD' : ambiguous call to overloaded function [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_mod
ules\bufferutil\build\bufferutil.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\node.h(257): could be 'void node::NODE_SET_METHOD(v8::Local<v8::Object>,const char *,v8::FunctionCallback)'
C:\Users\tanwm\.node-gyp\6.10.3\include\node\node.h(244): or 'void node::NODE_SET_METHOD(v8::Local<v8::Template>,const char *,v8::FunctionCallback)'
while trying to match the argument list '(v8::Local<v8::FunctionTemplate>, const char [7], overloaded-function)'
..\src\bufferutil.cc(31): error C2668: 'node::NODE_SET_METHOD' : ambiguous call to overloaded function [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_mod
ules\bufferutil\build\bufferutil.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\node.h(257): could be 'void node::NODE_SET_METHOD(v8::Local<v8::Object>,const char *,v8::FunctionCallback)'
C:\Users\tanwm\.node-gyp\6.10.3\include\node\node.h(244): or 'void node::NODE_SET_METHOD(v8::Local<v8::Template>,const char *,v8::FunctionCallback)'
while trying to match the argument list '(v8::Local<v8::FunctionTemplate>, const char [5], overloaded-function)'
..\src\bufferutil.cc(32): error C2668: 'node::NODE_SET_METHOD' : ambiguous call to overloaded function [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_mod
ules\bufferutil\build\bufferutil.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\node.h(257): could be 'void node::NODE_SET_METHOD(v8::Local<v8::Object>,const char *,v8::FunctionCallback)'
C:\Users\tanwm\.node-gyp\6.10.3\include\node\node.h(244): or 'void node::NODE_SET_METHOD(v8::Local<v8::Template>,const char *,v8::FunctionCallback)'
while trying to match the argument list '(v8::Local<v8::FunctionTemplate>, const char [6], overloaded-function)'
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (E:\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "E:\\nodejs\\node.exe" "E:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\bufferutil
gyp ERR! node -v v6.10.3
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok

> utf-8-validate@1.1.0 install E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate
> node-gyp rebuild


E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "E:\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
validation.cc win_delay_load_hook.cc
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan_new.h(34): warning C4996: 'v8::Value::ToInt32': was declared de
precated (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(2020) : see declaration of 'v8::Value::ToInt32'
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan_new.h(39): warning C4996: 'v8::Value::ToUint32': was declared d
eprecated (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(2019) : see declaration of 'v8::Value::ToUint32'
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan_implementation_12_inl.h(49): warning C4996: 'v8::BooleanObject:
:New': was declared deprecated (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(400smilie : see declaration of 'v8::BooleanObject::New'
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan_implementation_12_inl.h(166): warning C4996: 'v8::ScriptCompile
r::Compile': was declared deprecated (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxpro
j]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(1355) : see declaration of 'v8::ScriptCompiler::Compile'
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan_implementation_12_inl.h(173): warning C4996: 'v8::ScriptCompile
r::Compile': was declared deprecated (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxpro
j]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(1355) : see declaration of 'v8::ScriptCompiler::Compile'
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan_implementation_12_inl.h(206): warning C4996: 'v8::String::NewFr
omOneByte': was declared deprecated (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj
]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(2336) : see declaration of 'v8::String::NewFromOneByte'
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan_implementation_12_inl.h(217): warning C4996: 'v8::String::NewEx
ternal': was declared deprecated (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(2373) : see declaration of 'v8::String::NewExternal'
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan_implementation_12_inl.h(237): warning C4996: 'v8::ScriptCompile
r::CompileUnbound': was declared deprecated (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation .vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(1336) : see declaration of 'v8::ScriptCompiler::CompileUnbound'
e:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan_implementation_12_inl.h(244): warning C4996: 'v8::ScriptCompile
r::CompileUnbound': was declared deprecated (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation
.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(1336) : see declaration of 'v8::ScriptCompiler::CompileUnbound'
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(263): error C2995: 'v8::Local<T> _NanEnsureLocal(v8::Local<T>
)' : function template has already been defined (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\valida
tion.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(256) : see declaration of '_NanEnsureLocal'
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(473): error C2039: 'GCEpilogueCallback' : is not a member of
'v8::Isolate' (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(5443) : see declaration of 'v8::Isolate'
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(473): error C2065: 'GCEpilogueCallback' : undeclared identifi
er (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(474): error C2146: syntax error : missing ')' before identifi
er 'callback' (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(474): error C2182: 'NanAddGCEpilogueCallback' : illegal use o
f type 'void' (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(474): error C2433: 'NanAddGCEpilogueCallback' : '__forceinlin
e' not permitted on data declarations (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxpr
oj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(474): error C2059: syntax error : ')' (..\src\validation.cc)
[E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(474): error C2143: syntax error : missing ';' before '{' (..\
src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(474): error C2447: '{' : missing function header (old-style f ormal list?) (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(479): error C2039: 'GCEpilogueCallback' : is not a member of
'v8::Isolate' (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(5443) : see declaration of 'v8::Isolate'
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(479): error C2065: 'GCEpilogueCallback' : undeclared identifi
er (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(479): error C2146: syntax error : missing ')' before identifi
er 'callback' (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(479): error C2182: 'NanRemoveGCEpilogueCallback' : illegal us
e of type 'void' (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(479): error C2433: 'NanRemoveGCEpilogueCallback' : '__forcein
line' not permitted on data declarations (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vc
xproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(479): error C2059: syntax error : ')' (..\src\validation.cc)
[E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(479): error C2143: syntax error : missing ';' before '{' (..\
src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(479): error C2447: '{' : missing function header (old-style f
ormal list?) (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(484): error C2039: 'GCPrologueCallback' : is not a member of
'v8::Isolate' (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(5443) : see declaration of 'v8::Isolate'
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(484): error C2065: 'GCPrologueCallback' : undeclared identifi
er (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(485): error C2146: syntax error : missing ')' before identifi
er 'callback' (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(485): error C2182: 'NanAddGCPrologueCallback' : illegal use o
f type 'void' (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(485): error C2433: 'NanAddGCPrologueCallback' : '__forceinlin
e' not permitted on data declarations (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxpr
oj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(485): error C2059: syntax error : ')' (..\src\validation.cc)
[E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(485): error C2143: syntax error : missing ';' before '{' (..\
src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(485): error C2447: '{' : missing function header (old-style f
ormal list?) (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(490): error C2039: 'GCPrologueCallback' : is not a member of
'v8::Isolate' (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\v8.h(5443) : see declaration of 'v8::Isolate'
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(490): error C2065: 'GCPrologueCallback' : undeclared identifi
er (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(490): error C2146: syntax error : missing ')' before identifi
er 'callback' (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(490): error C2182: 'NanRemoveGCPrologueCallback' : illegal us
e of type 'void' (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(490): error C2433: 'NanRemoveGCPrologueCallback' : '__forcein
line' not permitted on data declarations (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vc
xproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(490): error C2059: syntax error : ')' (..\src\validation.cc)
[E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(490): error C2143: syntax error : missing ';' before '{' (..\
src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(490): error C2447: '{' : missing function header (old-style f
ormal list?) (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(661): error C3083: 'smalloc': the symbol to the left of a '::
' must be a type (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(661): error C2039: 'FreeCallback' : is not a member of 'node'
(..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(661): error C2061: syntax error : identifier 'FreeCallback' (
..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(665): error C2065: 'callback' : undeclared identifier (..\src
\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(665): error C2065: 'hint' : undeclared identifier (..\src\val
idation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(672): error C2665: 'node::Buffer::New' : none of the 4 overlo
ads could convert all the argument types (..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vc
xproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\node_buffer.h(46): could be 'v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,char *,size_t)'
C:\Users\tanwm\.node-gyp\6.10.3\include\node\node_buffer.h(34): or 'v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,v8::Local<v8::String>,node::
encoding)' while trying to match the argument list '(v8::Isolate *, const char *, uint32_t)'
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(676): error C2664: 'v8::Local<v8::Object>::Local(const v8::Lo
cal<v8::Object> &)' : cannot convert argument 1 from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object> &' (..\src\validation.cc) [E:\wot-book\chapter7-implement
ation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
Reason: cannot convert from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object>'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(683): error C2039: 'Use' : is not a member of 'node::Buffer'
(..\src\validation.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\node_modules\nan\nan.h(683): error C3861: 'Use': identifier not found (..\src\valida
tion.cc) [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate\build\validation.vcxproj]
..\src\validation.cc(112): error C2668: 'node::NODE_SET_METHOD' : ambiguous call to overloaded function [E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_mo
dules\utf-8-validate\build\validation.vcxproj]
C:\Users\tanwm\.node-gyp\6.10.3\include\node\node.h(257): could be 'void node::NODE_SET_METHOD(v8::Local<v8::Object>,const char *,v8::FunctionCallback)'
C:\Users\tanwm\.node-gyp\6.10.3\include\node\node.h(244): or 'void node::NODE_SET_METHOD(v8::Local<v8::Template>,const char *,v8::FunctionCallback)'
while trying to match the argument list '(v8::Local<v8::FunctionTemplate>, const char [12], overloaded-function)'
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (E:\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "E:\\nodejs\\node.exe" "E:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\utf-8-validate gyp ERR! node -v v6.10.3
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok

> node-dht-sensor@0.0.8 install E:\wot-book\chapter7-implementation\part1-2-direct-gateway\node_modules\node-dht-sensor
> ./check-bcm2835

'.' is not recognized as an internal or external command,
operable program or batch file.
npm WARN wot-pi@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 (node_modules\bufferutil):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 (node_modules\utf-8-validate):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-dht-sensor@0.0.8 (node_modules\node-dht-sensor):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-dht-sensor@0.0.8 install: `./check-bcm2835`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
domguinard (71) [Avatar] Offline
#2
Hi,

This is most likely because you are using Node version 6 (from what I can see). Try using Node 4.X (4.8.4 is the latest see https://nodejs.org/download/release/v4.8.4/) as suggested in the book (Page 99).

Let us know if that helps.

Dom
438536 (7) [Avatar] Offline
#3
Thanks for the advice. Can I enquire in section 7.4.2 Create your MQTT client application, when I execute node simple-plug.js, I another the script error below. Any advice? Thanks.
root@raspberrypi:/home/pi/wot-book/chapter7-implementation/part3-cloud# node simple-plug.js
module.js:427
throw err;
^

SyntaxError: /home/pi/wot-book/chapter7-implementation/part3-cloud/config.json: Unexpected token :
at Object.parse (native)
at Object.Module._extensions..json (module.js:424:27)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/pi/wot-book/chapter7-implementation/part3-cloud/simple-plug.js:3:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
root@raspberrypi:/home/pi/wot-book/chapter7-implementation/part3-cloud#