node.js - unable to install tcpsocket-serialport - node.js

I'm currently trying to set up my ESP8266 with Johnny Five wirelessly via node.js. To do this I need to get a virtual Serial Port via TCP. I found a very promising node-module but i just can't get it to install. I've been browsing the web for quite some time now. I installed the windows 8.1 SDK including c++ compiler, the windows build tools, node-gyp (which was basically the reason for all the other stuff) but now I'm completely stuck as I don't know what to make of the errors.
This is where I got the pacakage from
https://github.com/sizuhiko/tcpsocket-serialport
These are the errors (sorry for the mess)
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Sie den Schalter "/m" hinzufügen.
serialport.cpp
serialport_win.cpp
enumser.cpp
win_delay_load_hook.cc
..\src\win\enumser.cpp(443): warning C4996: 'GetVersionExA': was declared deprecated [C:\Users\chris\OneDrive\P
rogrammieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport\build\
serialport.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\Include\um\sysinfoapi.h(433): note: see declaration of 'GetVersionExA
'
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(263): error C2995: 'v8::Local<T> _NanEnsureLocal(v8::Local<T>)': function template has alread
y been defined (compiling source file ..\src\serialport.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\arduin
o\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\nod
e_modules\nan\nan.h(256): note: see declaration of '_NanEnsureLocal' (compiling source file ..\src\serialport
.cpp)
c:\users\chris\onedrive\programmieren\code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\src\win\stdstring.h(2123): warning C4311: 'reinterpret_cast': pointer truncation from 'const
void *' to 'unsigned long' (compiling source file ..\src\win\enumser.cpp) [C:\Users\chris\OneDrive\Programmier
en\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport\build\serialport
.vcxproj]
c:\users\chris\onedrive\programmieren\code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\nod
e_modules\serialport\src\win\stdstring.h(2117): note: while compiling class template member function 'bool CS
tdStr<wchar_t>::TryLoad(const void *)' (compiling source file ..\src\win\enumser.cpp)
c:\users\chris\onedrive\programmieren\code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\nod
e_modules\serialport\src\win\stdstring.h(2171): note: see reference to function template instantiation 'bool
CStdStr<wchar_t>::TryLoad(const void *)' being compiled (compiling source file ..\src\win\enumser.cpp)
c:\users\chris\onedrive\programmieren\code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\nod
e_modules\serialport\src\win\stdstring.h(3982): note: see reference to class template instantiation 'CStdStr<
wchar_t>' being compiled (compiling source file ..\src\win\enumser.cpp)
c:\users\chris\onedrive\programmieren\code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\src\win\stdstring.h(2123): warning C4302: 'reinterpret_cast': truncation from 'const void *'
to 'unsigned long' (compiling source file ..\src\win\enumser.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\
arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport\build\serialport.vcxproj
]
c:\users\chris\onedrive\programmieren\code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\src\win\stdstring.h(2126): warning C4311: 'reinterpret_cast': pointer truncation from 'const
void *' to 'unsigned long' (compiling source file ..\src\win\enumser.cpp) [C:\Users\chris\OneDrive\Programmier
en\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport\build\serialport
.vcxproj]
c:\users\chris\onedrive\programmieren\code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\src\win\stdstring.h(2126): warning C4302: 'reinterpret_cast': truncation from 'const void *'
to 'unsigned long' (compiling source file ..\src\win\enumser.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\
arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport\build\serialport.vcxproj
]
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(661): error C3083: 'smalloc': the symbol to the left of a '::' must be a type (compiling sour
ce file ..\src\serialport.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialpor
t\node_modules\johnny-five\node_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(661): error C2039: 'FreeCallback': is not a member of 'node' (compiling source file ..\src\se
rialport.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\jo
hnny-five\node_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\.node-gyp\4.6.1\include\node\node_object_wrap.h(8): note: see declaration of 'node' (compiling
source file ..\src\serialport.cpp)
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(661): error C2061: syntax error: identifier 'FreeCallback' (compiling source file ..\src\seri
alport.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\john
ny-five\node_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(665): error C2065: 'callback': undeclared identifier (compiling source file ..\src\serialport
.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-fiv
e\node_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(665): error C2065: 'hint': undeclared identifier (compiling source file ..\src\serialport.cpp
) [C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\no
de_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(672): error C2665: 'node::Buffer::New': none of the 4 overloads could convert all the argumen
t types (compiling source file ..\src\serialport.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\te
st2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\.node-gyp\4.6.1\include\node\node_buffer.h(46): note: could be 'v8::MaybeLocal<v8::Object> nod
e::Buffer::New(v8::Isolate *,char *,std::size_t)' (compiling source file ..\src\serialport.cpp)
C:\Users\chris\.node-gyp\4.6.1\include\node\node_buffer.h(34): note: or 'v8::MaybeLocal<v8::Object> nod
e::Buffer::New(v8::Isolate *,v8::Local<v8::String>,node::encoding)' (compiling source file ..\src\serialport.
cpp)
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\nod
e_modules\nan\nan.h(672): note: while trying to match the argument list '(v8::Isolate *, const char *, uint32
_t)' (compiling source file ..\src\serialport.cpp)
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(676): error C2440: 'return': cannot convert from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v
8::Object>' (compiling source file ..\src\serialport.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\arduino\j
f\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\nod
e_modules\nan\nan.h(676): note: No constructor could take the source type, or constructor overload resolution
was ambiguous (compiling source file ..\src\serialport.cpp)
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(683): error C2039: 'Use': is not a member of 'node::Buffer' (compiling source file ..\src\ser
ialport.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\joh
nny-five\node_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\.node-gyp\4.6.1\include\node\node_buffer.h(11): note: see declaration of 'node::Buffer' (compi
ling source file ..\src\serialport.cpp)
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(683): error C3861: 'Use': identifier not found (compiling source file ..\src\serialport.cpp)
[C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node
_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(263): error C2995: 'v8::Local<T> _NanEnsureLocal(v8::Local<T>)': function template has alread
y been defined (compiling source file ..\src\serialport_win.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\ar
duino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\nod
e_modules\nan\nan.h(256): note: see declaration of '_NanEnsureLocal' (compiling source file ..\src\serialport
_win.cpp)
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(661): error C3083: 'smalloc': the symbol to the left of a '::' must be a type (compiling sour
ce file ..\src\serialport_win.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-seria
lport\node_modules\johnny-five\node_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(661): error C2039: 'FreeCallback': is not a member of 'node' (compiling source file ..\src\se
rialport_win.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_module
s\johnny-five\node_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\.node-gyp\4.6.1\include\node\node_object_wrap.h(8): note: see declaration of 'node' (compiling
source file ..\src\serialport_win.cpp)
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(661): error C2061: syntax error: identifier 'FreeCallback' (compiling source file ..\src\seri
alport_win.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\
johnny-five\node_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(665): error C2065: 'callback': undeclared identifier (compiling source file ..\src\serialport
_win.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny
-five\node_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(665): error C2065: 'hint': undeclared identifier (compiling source file ..\src\serialport_win
.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-fiv
e\node_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(672): error C2665: 'node::Buffer::New': none of the 4 overloads could convert all the argumen
t types (compiling source file ..\src\serialport_win.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\arduino\j
f\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\.node-gyp\4.6.1\include\node\node_buffer.h(46): note: could be 'v8::MaybeLocal<v8::Object> nod
e::Buffer::New(v8::Isolate *,char *,std::size_t)' (compiling source file ..\src\serialport_win.cpp)
C:\Users\chris\.node-gyp\4.6.1\include\node\node_buffer.h(34): note: or 'v8::MaybeLocal<v8::Object> nod
e::Buffer::New(v8::Isolate *,v8::Local<v8::String>,node::encoding)' (compiling source file ..\src\serialport_
win.cpp)
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\nod
e_modules\nan\nan.h(672): note: while trying to match the argument list '(v8::Isolate *, const char *, uint32
_t)' (compiling source file ..\src\serialport_win.cpp)
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(676): error C2440: 'return': cannot convert from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v
8::Object>' (compiling source file ..\src\serialport_win.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\ardui
no\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\nod
e_modules\nan\nan.h(676): note: No constructor could take the source type, or constructor overload resolution
was ambiguous (compiling source file ..\src\serialport_win.cpp)
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(683): error C2039: 'Use': is not a member of 'node::Buffer' (compiling source file ..\src\ser
ialport_win.cpp) [C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules
\johnny-five\node_modules\serialport\build\serialport.vcxproj]
C:\Users\chris\.node-gyp\4.6.1\include\node\node_buffer.h(11): note: see declaration of 'node::Buffer' (compi
ling source file ..\src\serialport_win.cpp)
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\nan\nan.h(683): error C3861: 'Use': identifier not found (compiling source file ..\src\serialport_win.c
pp) [C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\
node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(152): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\Users
\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\
serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(152): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\Users\chris\O
neDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialpo
rt\build\serialport.vcxproj]
..\src\serialport_win.cpp(177): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(179): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(183): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(185): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(189): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(191): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(196): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(208): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(308): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\Users
\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\
serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(308): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\Users\chris\O
neDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialpo
rt\build\serialport.vcxproj]
..\src\serialport_win.cpp(318): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\Users
\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\
serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(318): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\Users\chris\O
neDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialpo
rt\build\serialport.vcxproj]
..\src\serialport_win.cpp(328): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(353): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(366): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(401): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(403): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(502): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(511): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [
C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_
modules\serialport\build\serialport.vcxproj]
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 (C:\Users\chris\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:285: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 Windows_NT 10.0.15063
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\chris\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\Users\\chris\\OneDrive\\Programmieren\\Code\\arduino\\jf\\test2\\tcpsocket-serialport\\node_modules\\johnny-five\\node_modules\\serialport\\build\\serialport\\v1.7.4\\Release\\node-v46-win32-x64\\serialport.node" "--module_name=serialport" "--module_path=C:\\Users\\chris\\OneDrive\\Programmieren\\Code\\arduino\\jf\\test2\\tcpsocket-serialport\\node_modules\\johnny-five\\node_modules\\serialport\\build\\serialport\\v1.7.4\\Release\\node-v46-win32-x64"
gyp ERR! cwd C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport
gyp ERR! node -v v4.6.1
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd build --fallback-to-build --module=C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport\build\serialport\v1.7.4\Release\node-v46-win32-x64\serialport.node --module_name=serialport --module_path=C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport\build\serialport\v1.7.4\Release\node-v46-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:829:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Windows_NT 10.0.15063
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\chris\\OneDrive\\Programmieren\\Code\\arduino\\jf\\test2\\tcpsocket-serialport\\node_modules\\johnny-five\\node_modules\\serialport\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport
node-pre-gyp ERR! node -v v4.6.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.7
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd build --fallback-to-build --module=C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport\build\serialport\v1.7.4\Release\node-v46-win32-x64\serialport.node --module_name=serialport --module_path=C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport\node_modules\johnny-five\node_modules\serialport\build\serialport\v1.7.4\Release\node-v46-win32-x64' (1)
tcpsocket-serialport#0.1.0 C:\Users\chris\OneDrive\Programmieren\Code\arduino\jf\test2\tcpsocket-serialport
+-- del#1.2.1
| +-- each-async#1.1.1
| | +-- onetime#1.1.0
...
| +-- string_decoder#1.0.1
| | `-- safe-buffer#5.0.1 deduped
| `-- util-deprecate#1.0.2 deduped
`-- jsdoctypeparser#1.2.0
`-- lodash#3.10.1
npm WARN tcpsocket-serialport#0.1.0 license should be a valid SPDX license expression
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: serialport#1.7.4 (node_modules\johnny-five\node_modules\serialport):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: serialport#1.7.4 install: `node-pre-gyp install --fallback-to-build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
Another package i found was this
https://www.npmjs.com/package/tcp-serial
Sadly it says ist tcp but if you try the given example it just gives you the error message, that it only works with udp. Anyways, if someone had an idea how to get either of those 2 running I'd be really thankful. I will still be trying to solve it by myself to and be sure to post an answer if I find one. Thanks in advance and
Greetings Chris

Turns out the mistake was pretty obvious once I took a look in the package.json.
The problem was I already included johnny-five in a parent folder which led to a conflict here. So if anyone happens to stumble over the same problem, don't install johnny five and try to install tcpsocket-serialport afterwards.

Related

Why is my environment breaking? Yarn install error with sha3

The Issue
I am trying to clone this project: https://github.com/Bounties-Network/Explorer. When I run yarn install everything breaks. I think it might be related to gyp, but I don't really know how to fix this. Where do you look when you get that kind of error?
The Errors I get
2 warnings and 19 errors generated.
make: *** [Release/obj.target/sha3/src/addon.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/victorforissier/.nvm/versions/node/v14.5.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 20.3.0
gyp ERR! command "/Users/victorforissier/.nvm/versions/node/v14.5.0/bin/node" "/Users/victorforissier/.nvm/versions/node/v14.5.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/victorforissier/dev/Explorer/node_modules/sha3
Logs
yarn install v1.22.4
warning ../../package.json: No license field
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning "#apollo/react-hooks > #apollo/react-common#3.1.2" has unmet peer dependency "apollo-utilities#^1.3.2".
warning " > #storybook/addon-centered#5.2.0-rc.2" has unmet peer dependency "mithril#*".
warning " > #storybook/addon-centered#5.2.0-rc.2" has unmet peer dependency "preact#*".
warning "#types/reflexbox > #emotion/styled#10.0.17" has incorrect peer dependency "#emotion/core#^10.0.17".
warning "#types/reflexbox > #emotion/styled > #emotion/styled-base#10.0.19" has incorrect peer dependency "#emotion/core#^10.0.17".
warning " > sass-extract-loader#1.1.0" has incorrect peer dependency "webpack#^3 || ^2 || ^2.2.0-rc.0 || ^2.1.0-beta || ^1.12.6".
[4/4] 🔨 Building fresh packages...
[6/12] ⠄ scrypt
[8/12] ⠄ fsevents
[9/12] ⠄ fsevents
[4/12] ⠄ sha3
error /Users/victorforissier/dev/Explorer/node_modules/sha3: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /Users/victorforissier/dev/Explorer/node_modules/sha3
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp#7.1.2
gyp info using node#14.5.0 | darwin | x64
gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
gyp info spawn args [
gyp info spawn args '/Users/victorforissier/.nvm/versions/node/v14.5.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/victorforissier/dev/Explorer/node_modules/sha3/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/victorforissier/.nvm/versions/node/v14.5.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/victorforissier/Library/Caches/node-gyp/14.5.0',
gyp info spawn args '-Dnode_gyp_dir=/Users/victorforissier/.nvm/versions/node/v14.5.0/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/victorforissier/Library/Caches/node-gyp/14.5.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/victorforissier/dev/Explorer/node_modules/sha3',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/sha3/src/addon.o
In file included from ../src/addon.cpp:4:
In file included from ../../nan/nan.h:202:
In file included from ../../nan/nan_converters.h:67:
../../nan/nan_converters_43_inl.h:22:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'
X(Boolean)
^~~~~~~~~~
../../nan/nan_converters_43_inl.h:18:23: note: expanded from macro 'X'
val->To ## TYPE(isolate->GetCurrentContext()) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:2844:37: note: passing argument to parameter 'isolate' here
Local<Boolean> ToBoolean(Isolate* isolate) const;
^
In file included from ../src/addon.cpp:4:
In file included from ../../nan/nan.h:202:
In file included from ../../nan/nan_converters.h:67:
../../nan/nan_converters_43_inl.h:40:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'
X(bool, Boolean)
^~~~~~~~~~~~~~~~
../../nan/nan_converters_43_inl.h:37:29: note: expanded from macro 'X'
return val->NAME ## Value(isolate->GetCurrentContext()); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:2854:30: note: passing argument to parameter 'isolate' here
bool BooleanValue(Isolate* isolate) const;
^
In file included from ../src/addon.cpp:4:
In file included from ../../nan/nan.h:203:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:103:42: error: no viable conversion from 'v8::Isolate *' to 'Local<v8::Context>'
return scope.Escape(v8::Function::New( isolate
^~~~~~~
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:186:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::Isolate *' to 'const v8::Local<v8::Context> &' for 1st argument
class Local {
^
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:186:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::Isolate *' to 'v8::Local<v8::Context> &&' for 1st argument
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:190:13: note: candidate template ignored: could not match 'Local<type-parameter-0-0>' against 'v8::Isolate *'
V8_INLINE Local(Local<S> that)
^
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:333:22: note: explicit constructor is not a candidate
explicit V8_INLINE Local(T* that) : val_(that) {}
^
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:4442:22: note: passing argument to parameter 'context' here
Local<Context> context, FunctionCallback callback,
^
In file included from ../src/addon.cpp:4:
In file included from ../../nan/nan.h:203:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:337:37: error: too few arguments to function call, expected 2, have 1
return v8::StringObject::New(value).As<v8::StringObject>();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:5836:23: note: 'New' declared here
static Local<Value> New(Isolate* isolate, Local<String> value);
^
In file included from ../src/addon.cpp:4:
../../nan/nan.h:1034:53: error: too few arguments to function call, single argument 'context' was not specified
v8::Local<v8::String> string = from->ToString();
~~~~~~~~~~~~~~ ^
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:2806:44: note: 'ToString' declared here
V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
^
In file included from ../src/addon.cpp:4:
../../nan/nan.h:1044:37: error: cannot initialize a parameter of type 'v8::Isolate *' with an lvalue of type 'char *'
length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
^~~~
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:3033:26: note: passing argument to parameter 'isolate' here
int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
^
In file included from ../src/addon.cpp:4:
../../nan/nan.h:1818:28: error: no matching member function for call to 'Set'
New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:3666:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
^
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:3669:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
^
In file included from ../src/addon.cpp:4:
../../nan/nan.h:1824:28: error: no matching member function for call to 'Set'
New(persistentHandle)->Set(key, value);
~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:3666:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
^
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:3669:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
^
In file included from ../src/addon.cpp:4:
../../nan/nan.h:1830:28: error: no matching member function for call to 'Set'
New(persistentHandle)->Set(index, value);
~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:3666:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
^
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:3669:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
^
In file included from ../src/addon.cpp:4:
../../nan/nan.h:1836:32: error: no matching member function for call to 'Get'
New(persistentHandle)->Get(New(key).ToLocalChecked()));
~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:3713:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
^
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:3716:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
^
In file included from ../src/addon.cpp:4:
../../nan/nan.h:1842:48: error: no matching member function for call to 'Get'
return scope.Escape(New(persistentHandle)->Get(key));
~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:3713:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
^
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:3716:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
^
In file included from ../src/addon.cpp:4:
../../nan/nan.h:1847:48: error: no matching member function for call to 'Get'
return scope.Escape(New(persistentHandle)->Get(index));
~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:3713:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
^
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:3716:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
^
In file included from ../src/addon.cpp:4:
In file included from ../../nan/nan.h:2657:
../../nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object>'
assert(persistent().IsNearDeath());
~~~~~~~~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from ../src/addon.cpp:4:
In file included from ../../nan/nan.h:2657:
../../nan/nan_object_wrap.h:67:18: error: no member named 'MarkIndependent' in 'Nan::Persistent<v8::Object>'
persistent().MarkIndependent();
~~~~~~~~~~~~ ^
../../nan/nan_object_wrap.h:124:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object>'
assert(wrap->handle_.IsNearDeath());
~~~~~~~~~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from ../src/addon.cpp:4:
In file included from ../../nan/nan.h:2753:
../../nan/nan_typedarray_contents.h:34:43: warning: 'GetContents' is deprecated: Use GetBackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations]
data = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
^
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:5254:3: note: 'GetContents' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use GetBackingStore. See http://crbug.com/v8/9908.")
^
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8config.h:402:39: note: expanded from macro 'V8_DEPRECATE_SOON'
# define V8_DEPRECATE_SOON(message) [[deprecated(message)]]
^
In file included from ../src/addon.cpp:9:
In file included from ../src/KeccakNISTInterface.h:17:
../src/KeccakSponge.h:23:9: warning: 'ALIGN' macro redefined [-Wmacro-redefined]
#define ALIGN __attribute__ ((aligned(32)))
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/i386/param.h:83:9: note: previous definition is here
#define ALIGN(p) __DARWIN_ALIGN(p)
^
../src/addon.cpp:36:64: error: too few arguments to function call, single argument 'context' was not specified
hashlen = info[0]->IsUndefined() ? 512 : info[0]->Int32Value();
~~~~~~~~~~~~~~~~~~~ ^
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:2865:40: note: 'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^
../src/addon.cpp:76:36: error: too few arguments to function call, single argument 'context' was not specified
constructor.Reset(t->GetFunction());
~~~~~~~~~~~~~~ ^
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:6464:46: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
^
../src/addon.cpp:77:77: error: too few arguments to function call, single argument 'context' was not specified
target->Set(Nan::New<String>("SHA3Hash").ToLocalChecked(), t->GetFunction());
~~~~~~~~~~~~~~ ^
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:6464:46: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
^
../src/addon.cpp:97:49: error: too few arguments to function call, single argument 'context' was not specified
Local<Object> buffer_obj = info[0]->ToObject();
~~~~~~~~~~~~~~~~~ ^
/Users/victorforissier/Library/Caches/node-gyp/14.5.0/include/node/v8.h:2818:44: note: 'ToObject' declared here
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^
2 warnings and 19 errors generated.
make: *** [Release/obj.target/sha3/src/addon.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/victorforissier/.nvm/versions/node/v14.5.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 20.3.0
gyp ERR! command "/Users/victorforissier/.nvm/versions/node/v14.5.0/bin/node" "/Users/victorforissier/.nvm/versions/node/v14.5.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/victorforissier/dev/Explorer/node_modules/sha3
Update the npm it should resolve the issue.
npm i npm -g

Error during sqlite3 installation in Termux

when I install sqlite3 in Termux, after > node-pre-gyp install --fallback-to-build there is a warning about the absence of pre-built binaries, and after there are errors that I don't understand:
$ npm install sqlite3#5.0.2
npm WARN deprecated node-pre-gyp#0.11.0: Please upgrade to #mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the #mapbox scoped package will recieve updates in the future
npm WARN deprecated tar#2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
> sqlite3#5.0.2 install /storage/emulated/0/Bots/Test/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v5.0.2/napi-v3-android-arm.tar.gz
node-pre-gyp WARN Pre-built binaries not found for sqlite3#5.0.2 and node#14.15.4 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
make: Entering directory '/storage/emulated/0/Bots/Test/node_modules/sqlite3/build' CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
AR(target) Release/obj.target/../node-addon-api/nothing.a
COPY Release/nothing.a
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3340000/sqlite3.c
TOUCH Release/obj.target/deps/action_before_build.stamp
CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3340000/sqlite3.o Release/obj/gen/sqlite-autoconf-3340000/sqlite3.c:744:17: warning: suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma? [-Wstring-concatenation]
"THREADSAFE=" CTIMEOPT_VAL(SQLITE_THREADSAFE), ^ , Release/obj/gen/sqlite-autoconf-3340000/sqlite3.c:56:27: note: expanded from macro 'CTIMEOPT_VAL' #define CTIMEOPT_VAL(opt) CTIMEOPT_VAL_(opt) ^
Release/obj/gen/sqlite-autoconf-3340000/sqlite3.c:55:28: note: expanded from macro 'CTIMEOPT_VAL_' #define CTIMEOPT_VAL_(opt) #opt ^ :5:1: note: expanded from here "1"
^ Release/obj/gen/sqlite-autoconf-3340000/sqlite3.c:744:3: note: place parentheses around the string literal to silence warning "THREADSAFE=" CTIMEOPT_VAL(SQLITE_THREADSAFE), ^ 1 warning generated. AR(target) Release/obj.target/deps/sqlite3.a
COPY Release/sqlite3.a CXX(target) Release/obj.target/node_sqlite3/src/backup.o
../src/backup.cc:179:9: warning: unused variable 'status' [-Wunused-variable] int status = napi_create_async_work(
^ ../src/backup.cc:252:5: warning: unused variable 'status' [-Wunused-variable] BACKUP_BEGIN(Step);
^ ../src/macros.h:182:9: note: expanded from macro 'BACKUP_BEGIN' int status = napi_create_async_work( \
^
../src/backup.cc:319:5: warning: unused variable 'status' [-Wunused-variable] BACKUP_BEGIN(Finish);
^ ../src/macros.h:182:9: note: expanded from macro 'BACKUP_BEGIN'
int status = napi_create_async_work(
^ 3 warnings generated. CXX(target) Release/obj.target/node_sqlite3/src/database.o ../src/database.cc:153:9: warning: unused variable 'status' [-Wunused-variable]
int status = napi_create_async_work(
^ ../src/database.cc:247:9: warning: unused variable 'status' [-Wunused-variable] int status = napi_create_async_work( ^ ../src/database.cc:560:9: warning: unused variable 'status' [-Wunused-variable]
int status = napi_create_async_work(
^
../src/database.cc:669:9: warning: unused variable 'status' [-Wunused-variable] int status = napi_create_async_work(
^ 4 warnings generated. CXX(target) Release/obj.target/node_sqlite3/src/node_sqlite3.o CXX(target) Release/obj.target/node_sqlite3/src/statement.o ../src/statement.cc:122:9: warning: unused variable 'status' [-Wunused-variable] int status = napi_create_async_work(
^ ../src/statement.cc:344:5: warning: unused variable 'status' [-Wunused-variable] STATEMENT_BEGIN(Bind);
^ ../src/macros.h:146:9: note: expanded from macro 'STATEMENT_BEGIN' int status = napi_create_async_work(
^ ../src/statement.cc:396:5: warning: unused variable 'status' [-Wunused-variable] STATEMENT_BEGIN(Get);
^ ../src/macros.h:146:9: note: expanded from macro 'STATEMENT_BEGIN' int status = napi_create_async_work( \
^
../src/statement.cc:468:5: warning: unused variable 'status' [-Wunused-variable]
STATEMENT_BEGIN(Run);
^
../src/macros.h:146:9: note: expanded from macro 'STATEMENT_BEGIN'
int status = napi_create_async_work(
^ ../src/statement.cc:538:5: warning: unused variable 'status' [-Wunused-variable] STATEMENT_BEGIN(All);
^ ../src/macros.h:146:9: note: expanded from macro 'STATEMENT_BEGIN' int status = napi_create_async_work( \
^ ../src/statement.cc:639:5: warning: unused variable 'status' [-Wunused-variable] STATEMENT_BEGIN(Each); ^
../src/macros.h:146:9: note: expanded from macro 'STATEMENT_BEGIN'
int status = napi_create_async_work(
^ ../src/statement.cc:766:5: warning: unused variable 'status' [-Wunused-variable] STATEMENT_BEGIN(Reset);
^ ../src/macros.h:146:9: note: expanded from macro 'STATEMENT_BEGIN' int status = napi_create_async_work( \
^
7 warnings generated.
SOLINK_MODULE(target) Release/obj.target/node_sqlite3.node
COPY Release/node_sqlite3.node
COPY /storage/emulated/0/Bots/Test/node_modules/sqlite3/lib/binding/napi-v3-android-arm/node_sqlite3
TOUCH Release/obj.target/action_after_build.stamp make: Leaving directory '/storage/emulated/0/Bots/Test/node_modules/sqlite3/build'
npm WARN Test#1.0.0 No description
npm WARN Test#1.0.0 No repository field.
+sqlite3#5.0.2 added 43 packages from 109 contributors and audited 146 packages in 451.474s
5 packages are looking for funding run npm fund for details
found
2 high severity vulnerabilities
run npm audit fix to fix them, or npm audit for details
Yes, it is installed after as much as 5 minutes, but when you run code with sqlite3, it throws an error:
$ node test
internal/modules/cjs/loader.js:1122
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: dlopen failed: couldn't map "/storage/emulated/0/Bots/Test/node_modules/sqlite3/lib/binding/napi-v3-android-arm/node_sqlite3.node" segment 1: Permission denied
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1122:18)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/storage/emulated/0/Bots/Test/node_modules/sqlite3/lib/sqlite3-binding.js:4:15)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
test.js:
var sqlite3 = require('sqlite3').verbose();
var db = new sqlite3.Database('db.sqlite3');
I also created an issue on github, but no one has answered me there yet:
https://github.com/mapbox/node-sqlite3/issues/1491
npm install sqlite3 --build-from-source --sqlite=/data/data/com.termux/files/usr/bin/sqlite3

Node.js ursa installation errors: C2039, C2504, C4430 and C2143

I am trying to install Node.js Ursa module but it shows the error below:
> ursa#0.8.1 install C:\Users\User\Desktop\ursa-master
> node-gyp configure && node-gyp build && node install.js
C:\Users\User\Desktop\ursa-master>node "C:\Program Files\nodejs\node_modules\npm
\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure
child_process: customFds option is deprecated, use stdio instead.
C:\Users\User\Desktop\ursa-master>node "C:\Program Files\nodejs\node_modules\npm
\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" build
child_process: customFds option is deprecated, use stdio instead.
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
ursaNative.cc
asprintf.cc
c:\users\user\desktop\ursa-master\src\ursaNative.h(14): error C2039: 'ObjectWra
p' : is not a member of 'node' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ur
sa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(14): error C2504: 'ObjectWra
p' : base class undefined (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-ma
ster\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(22): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(22): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(22): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(23): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(23): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(23): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(24): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(24): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(24): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(25): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(25): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(25): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(26): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(26): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(26): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(27): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(27): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(27): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(28): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(28): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(28): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(29): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(29): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(29): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(30): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(30): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(30): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(31): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(31): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(31): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(32): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(32): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(32): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(33): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(33): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(33): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(34): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(34): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(34): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(35): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(35): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(35): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(36): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(36): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(36): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(37): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(37): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(37): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(40): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(40): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(40): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(41): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(41): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(41): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(42): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(42): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(42): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(47): error C2039: 'Arguments
' : is not a member of 'v8' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(47): error C4430: missing ty
pe specifier - int assumed. Note: C++ does not support default-int (..\src\ursa
Native.cc) [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
c:\users\user\desktop\ursa-master\src\ursaNative.h(47): error C2143: syntax err
or : missing ',' before '&' (..\src\ursaNative.cc) [C:\Users\User\Desktop\ursa-
master\build\ursaNative.vcxproj]
..\src\ursaNative.cc(42): error C2039: 'NewSymbol' : is not a member of 'v8::St
ring' [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
C:\Users\User\.node-gyp\0.12.0\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\ursaNative.cc(42): error C2664: 'v8::Local<v8::FunctionTemplate> v8::Fun
ctionTemplate::New(v8::Isolate *,v8::FunctionCallback,v8::Handle<v8::Value>,v8:
:Handle<v8::Signature>,int)' : cannot convert argument 1 from 'v8::Handle<v8::V
alue> (__cdecl *)(const int)' to 'v8::Isolate *' [C:\Users\User\Desktop\ursa-ma
ster\build\ursaNative.vcxproj]
There is no context in which this conversion is possible
..\src\ursaNative.cc(42): error C2227: left of '->GetFunction' must point to cl
ass/struct/union/generic type [C:\Users\User\Desktop\ursa-master\build\ursaNati
ve.vcxproj]
..\src\ursaNative.cc(42): error C3861: 'NewSymbol': identifier not found [C:\Us
ers\User\Desktop\ursa-master\build\ursaNative.vcxproj]
..\src\ursaNative.cc(71): error C2039: 'New' : is not a member of 'v8::String'
[C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
C:\Users\User\.node-gyp\0.12.0\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\ursaNative.cc(71): error C3861: 'New': identifier not found [C:\Users\Us
er\Desktop\ursa-master\build\ursaNative.vcxproj]
..\src\ursaNative.cc(74): error C3861: 'ThrowException': identifier not found [
C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
..\src\ursaNative.cc(83): error C2039: 'New' : is not a member of 'v8::String'
[C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
C:\Users\User\.node-gyp\0.12.0\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\ursaNative.cc(83): error C3861: 'ThrowException': identifier not found [
C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxproj]
..\src\ursaNative.cc(83): error C3861: 'New': identifier not found [C:\Users\Us
er\Desktop\ursa-master\build\ursaNative.vcxproj]
..\src\ursaNative.cc(93): error C2882: 'Buffer' : illegal use of namespace iden
tifier in expression [C:\Users\User\Desktop\ursa-master\build\ursaNative.vcxpro
j]
..\src\ursaNative.cc(93): fatal error C1903: unable to recover from previous er
ror(s); stopping compilation [C:\Users\User\Desktop\ursa-master\build\ursaNativ
e.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` fail
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067
:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "build"
gyp ERR! cwd C:\Users\User\Desktop\ursa-master
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! ursa#0.8.1 install: `node-gyp configure && node-gyp build && node insta
ll.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ursa#0.8.1 install script 'node-gyp configure && node-gyp
build && node install.js'.
npm ERR! This is most likely a problem with the ursa package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp configure && node-gyp build && node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls ursa
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\User\Desktop\ursa-master\npm-debug.log
I don't have Visual studio 2010, only 2013.
I just downgrade the version of my Node.js, and it's working!

Build mono for fedora 20 no xbuild

I'm currently trying to update my mono, gtk-sharp and monodevelop environment, since I need to build with gstreamer-sharp 0.99.x which needs the new bindings.
So no problem I thought. Downloaded mono, unpacked it and started the normal toolchain.
But mono doesn't build xbuild for me. mono is build and has the correct version, but I couldn't test it, since I would say, something is missing, if xbuild is not build.
How can this happen?
config.log (errors only mentioned):
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
conftest.c:58:24: fatal error: sys/sockio.h: No such file or directory
#include <sys/sockio.h>
conftest.c:27:23: fatal error: sys/utime.h: No such file or directory
#include <sys/utime.h>
conftest.c:64:23: fatal error: sys/mkdev.h: No such file or directory
#include <sys/mkdev.h>
conftest.c:31:23: fatal error: sys/mkdev.h: No such file or directory
#include <sys/mkdev.h>
conftest.c:66:21: fatal error: libproc.h: No such file or directory
#include <libproc.h>
conftest.c:94:20: fatal error: ieeefp.h: No such file or directory
#include <ieeefp.h>
/home/sven/Downloads/mono-3.4.0/conftest.c:96: undefined reference to `_finite'
collect2: error: ld returned 1 exit status
conftest.c:71:4: error: #error "FAILED"
#error "FAILED"
^
conftest.c:101:31: fatal error: nacl/nacl_dyncode.h: No such file or
directory #include <nacl/nacl_dyncode.h>
/home/sven/Downloads/mono-3.4.0/conftest.c:102: undefined reference to `dlopen'
collect2: error: ld returned 1 exit status
/home/sven/Downloads/mono-3.4.0/conftest.c:111: undefined reference to `kqueue'
collect2: error: ld returned 1 exit status
conftest.c:95:13: error: too few arguments to function 'sched_setaffinity'
sched_setaffinity(0, &mask);
/usr/bin/ld: cannot find -lsocket
collect2: error: ld returned 1 exit status
conftest.c:101:15: error: 'SOL_TCP' undeclared (first use in this function)
int level = SOL_TCP;
conftest.c:98:22: fatal error: Ws2ipdef.h: No such file or directory
#include <Ws2ipdef.h>
conftest.c:106:20: error: 'NULL' undeclared (first use in this function)
gethostbyname2_r(NULL,0,NULL,NULL,0,NULL,NULL);
conftest.c:138:24: fatal error: pthread_np.h: No such file or directory
#include <pthread_np.h>
/home/sven/Downloads/mono-3.4.0/conftest.c:141: undefined reference to `pthread_attr_get_np'
collect2: error: ld returned 1 exit status
/home/sven/Downloads/mono-3.4.0/conftest.c:125: undefined reference to `shm_open'
collect2: error: ld returned 1 exit status
/home/sven/Downloads/mono-3.4.0/conftest.c:127: undefined reference to `sqrtf'
collect2: error: ld returned 1 exit status
conftest.c:156:23: fatal error: sys/event.h: No such file or directory
#include <sys/event.h>
conftest.c:134:8: error: 'struct sockaddr_in' has no member named 'sin_len'
saddr.sin_len = sizeof (saddr);
conftest.c:134:9: error: 'struct sockaddr_in6' has no member named 'sin6_len'
saddr6.sin6_len = sizeof (saddr6);
conftest.c:161:23: fatal error: checklist.h: No such file or directory
#include <checklist.h>
conftest.c:161:22: fatal error: pathconf.h: No such file or directory
#include <pathconf.h>
conftest.c:129:24: fatal error: attr/xattr.h: No such file or directory
#include <attr/xattr.h>
conftest.c:162:25: fatal error: sys/extattr.h: No such file or directory
#include <sys/extattr.h>
conftest.c:165:24: fatal error: sys/vfstab.h: No such file or directory
#include <sys/vfstab.h>
conftest.c:194:24: error: expected expression before ')' token
if (sizeof ((blksize_t)))
conftest.c:253:39: fatal error: CommonCrypto/CommonDigest.h: No such file or directory
#include <CommonCrypto/CommonDigest.h>
conftest.c:253:20: fatal error: curses.h: No such file or directory
#include <curses.h>
conftest.c:225:18: fatal error: term.h: No such file or directory
#include <term.h>
/usr/bin/ld: cannot find -lsunmath
collect2: error: ld returned 1 exit status
Greeting
Sven

32 errors for something that shouldn't be happening

I'm compiling on VC++ 2010. The following code is for a homework assignment:
#include <iostream>
#include <map>
#include "PaintJobEst.h"
using namespace std;
int main( void )
{
map< string, double > data;
double numRooms = 0, costPerGallon = 0, sqrFtWallSpace = 0;
cout << "How many rooms wil you be painting today? " << endl;
cin >> numRooms;
const bool numRoomsAtLeastOne = ( numRooms >= 1 );
if ( !numRoomsAtLeastOne )
{
cout << "INVALID ENTRY: Please enter a value greater than or equal to 1 for the amount of rooms you wish to paint" << endl;
main();
}
cout << "What is the cost of paint per gallon? " << endl;
cin >> costPerGallon;
const bool costCheck = ( costPerGallon >= 10.00 );
if ( !costCheck )
{
cout << "INVALID ENTRY: Please enter a value greater than or equal to 10.00 for the cost-per-gallon of paint you wish to use." << endl;
main();
}
cout << "What is the square feet of wallspace per gallon of paint you wish to cover? " << endl;
cin >> sqrFtWallSpace;
const bool sqrFeetCheck = ( sqrFtWallSpace >= 0 );
if ( !sqrFeetCheck )
{
cout << "INVALID ENTRY: Please enter a value which is NON-NEGATIVE for covering the square feet of wallspace per gallon" << endl;
main();
}
data.insert( pair< string, double >( "numRooms", numRooms ) );
data.insert( pair< string, double >( "costPerGallon", costPerGallon ) );
data.insert( pair< string, double >( "sqrFtWallSpace", sqrFtWallSpace ) );
Estimate( data );
system("pause");
}
Yet, when I compile it, I get flooded with strange errors which are related to how the xfunctional file. Why this is happening, I have no idea. Am I missing an include file somewhere?
Errors
>------ Build started: Project: Project17, Configuration: Debug Win32 ------
1> main.cpp
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(125): error C2784: 'bool std::operator <(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)' : could not deduce template argument for 'const std::_Tree<_Traits> &' from 'const std::string'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xtree(1885) : see declaration of 'std::operator <'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(124) : while compiling class template member function 'bool std::less<_Ty>::operator ()(const _Ty &,const _Ty &) const'
1> with
1> [
1> _Ty=std::string
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\map(71) : see reference to class template instantiation 'std::less<_Ty>' being compiled
1> with
1> [
1> _Ty=std::string
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xtree(451) : see reference to class template instantiation 'std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,_Mfl>' being compiled
1> with
1> [
1> _Kty=std::string,
1> _Ty=double,
1> _Pr=std::less<std::string>,
1> _Alloc=std::allocator<std::pair<const std::string,double>>,
1> _Mfl=false
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xtree(520) : see reference to class template instantiation 'std::_Tree_nod<_Traits>' being compiled
1> with
1> [
1> _Traits=std::_Tmap_traits<std::string,double,std::less<std::string>,std::allocator<std::pair<const std::string,double>>,false>
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xtree(659) : see reference to class template instantiation 'std::_Tree_val<_Traits>' being compiled
1> with
1> [
1> _Traits=std::_Tmap_traits<std::string,double,std::less<std::string>,std::allocator<std::pair<const std::string,double>>,false>
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\map(81) : see reference to class template instantiation 'std::_Tree<_Traits>' being compiled
1> with
1> [
1> _Traits=std::_Tmap_traits<std::string,double,std::less<std::string>,std::allocator<std::pair<const std::string,double>>,false>
1> ]
1> c:\users\holland\documents\code\projects\studying\chapter6\project17\project17\main.cpp(13) : see reference to class template instantiation 'std::map<_Kty,_Ty>' being compiled
1> with
1> [
1> _Kty=std::string,
1> _Ty=double
1> ]
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(125): error C2784: 'bool std::operator <(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)' : could not deduce template argument for 'const std::_Tree<_Traits> &' from 'const std::string'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xtree(1885) : see declaration of 'std::operator <'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(125): error C2784: 'bool std::operator <(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)' : could not deduce template argument for 'const std::_Tree<_Traits> &' from 'const std::string'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xtree(1885) : see declaration of 'std::operator <'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(125): error C2784: 'bool std::operator <(const std::unique_ptr<_Ty,_Dx> &,const std::unique_ptr<_Ty2,_Dx2> &)' : could not deduce template argument for 'const std::unique_ptr<_Ty,_Dx> &' from 'const std::string'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\memory(2582) : see declaration of 'std::operator <'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(125): error C2784: 'bool std::operator <(const std::unique_ptr<_Ty,_Dx> &,const std::unique_ptr<_Ty2,_Dx2> &)' : could not deduce template argument for 'const std::unique_ptr<_Ty,_Dx> &' from 'const std::string'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\memory(2582) : see declaration of 'std::operator <'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(125): error C2784: 'bool std::operator <(const std::unique_ptr<_Ty,_Dx> &,const std::unique_ptr<_Ty2,_Dx2> &)' : could not deduce template argument for 'const std::unique_ptr<_Ty,_Dx> &' from 'const std::string'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\memory(2582) : see declaration of 'std::operator <'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(125): error C2784: 'bool std::operator <(const std::reverse_iterator<_RanIt> &,const std::reverse_iterator<_RanIt2> &)' : could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'const std::string'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xutility(1356) : see declaration of 'std::operator <'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(125): error C2784: 'bool std::operator <(const std::reverse_iterator<_RanIt> &,const std::reverse_iterator<_RanIt2> &)' : could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'const std::string'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xutility(1356) : see declaration of 'std::operator <'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(125): error C2784: 'bool std::operator <(const std::reverse_iterator<_RanIt> &,const std::reverse_iterator<_RanIt2> &)' : could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'const std::string'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xutility(1356) : see declaration of 'std::operator <'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(125): error C2784: 'bool std::operator <(const std::_Revranit<_RanIt,_Base> &,const std::_Revranit<_RanIt2,_Base2> &)' : could not deduce template argument for 'const std::_Revranit<_RanIt,_Base> &' from 'const std::string'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xutility(1179) : see declaration of 'std::operator <'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(125): error C2784: 'bool std::operator <(const std::_Revranit<_RanIt,_Base> &,const std::_Revranit<_RanIt2,_Base2> &)' : could not deduce template argument for 'const std::_Revranit<_RanIt,_Base> &' from 'const std::string'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xutility(1179) : see declaration of 'std::operator <'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(125): error C2784: 'bool std::operator <(const std::_Revranit<_RanIt,_Base> &,const std::_Revranit<_RanIt2,_Base2> &)' : could not deduce template argument for 'const std::_Revranit<_RanIt,_Base> &' from 'const std::string'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xutility(1179) : see declaration of 'std::operator <'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(125): error C2784: 'bool std::operator <(const std::pair<_Ty1,_Ty2> &,const std::pair<_Ty1,_Ty2> &)' : could not deduce template argument for 'const std::pair<_Ty1,_Ty2> &' from 'const std::string'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\utility(318) : see declaration of 'std::operator <'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(125): error C2784: 'bool std::operator <(const std::pair<_Ty1,_Ty2> &,const std::pair<_Ty1,_Ty2> &)' : could not deduce template argument for 'const std::pair<_Ty1,_Ty2> &' from 'const std::string'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\utility(318) : see declaration of 'std::operator <'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(125): error C2784: 'bool std::operator <(const std::pair<_Ty1,_Ty2> &,const std::pair<_Ty1,_Ty2> &)' : could not deduce template argument for 'const std::pair<_Ty1,_Ty2> &' from 'const std::string'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\utility(318) : see declaration of 'std::operator <'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(125): error C2676: binary '<' : 'const std::string' does not define this operator or a conversion to a type acceptable to the predefined operator
1> PaintJobEst.cpp
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(125): error C2784: 'bool std::operator <(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)' : could not deduce template argument for 'const std::_Tree<_Traits> &' from 'const std::string'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xtree(1885) : see declaration of 'std::operator <'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xfunctional(124) : while compiling class template member function 'bool std::less<_Ty>::operator ()(const _Ty &,const _Ty &) const'
1> with
1> [
1> _Ty=std::string
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\map(71) : see reference to class template instantiation 'std::less<_Ty>' being compiled
1> with
1> [
1> _Ty=std::string
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xtree(451) : see reference to class template instantiation 'std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,_Mfl>' being compiled
1> with
1> [
1> _Kty=std::string,
1> _Ty=double,
1> _Pr=std::less<std::string>,
1> _Alloc=std::allocator<std::pair<const std::string,double>>,
1> _Mfl=false
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xtree(520) : see reference to class template instantiation 'std::_Tree_nod<_Traits>' being compiled
1> with
1> [
1> _Traits=std::_Tmap_traits<std::string,double,std::less<std::string>,std::allocator<std::pair<const std::string,double>>,false>
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\xtree(659) : see reference to class template instantiation 'std::_Tree_val<_Traits>' being compiled
1> with
1> [
1> _Traits=std::_Tmap_traits<std::string,double,std::less<std::string>,std::allocator<std::pair<const std::string,double>>,false>
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\map(81) : see reference to class template instantiation 'std::_Tree<_Traits>' being compiled
1> with
1> [
1> _Traits=std::_Tmap_traits<std::string,double,std::less<std::string>,std::allocator<std::pair<const std::string,double>>,false>
1> ]
1> c:\users\holland\documents\code\projects\studying\chapter6\project17\project17\paintjobest.cpp(9) : see reference to class template instantiation 'std::map<_Kty,_Ty>' being compiled
1> with
1> [
1> _Kty=std::string,
1> _Ty=double
1> ]
Add #include <string> and the problem goes away for me on VC++ 2010.

Resources