This project is read-only.

NPM Compile Error

Aug 6, 2015 at 7:03 PM
I am trying to compile an NPM package into my project and am receiving an error as outlined below. I am trying to install the node module "odbc" and cannot get the compile to work. I am using VS2015 community edition.

Any insight is appreciated.

H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc>if not defined npm_config_node_gyp (node "H:\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" configure build ) else (node configure build )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
odbc.cpp
odbc_connection.cpp
odbc_statement.cpp
odbc_result.cpp
dynodbc.cpp
..\src\odbc_statement.cpp(259): error C2668: 'NanThrowError': ambiguous call to overloaded function [H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\build\odbc_bindings.vcxproj]
H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\node_modules\nan\nan.h(719): note: could be 'void NanThrowError(v8::Handle<v8::Value>)' (compiling source file ..\src\odbc_statement.cpp)
H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\node_modules\nan\nan.h(711): note: or 'void NanThrowError(v8::Handle<v8::String>)' (compiling source file ..\src\odbc_statement.cpp)
H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\node_modules\nan\nan.h(711): note: or 'void NanThrowError(const char *)' (compiling source file ..\src\odbc_statement.cpp)
..\src\odbc_statement.cpp(259): note: while trying to match the argument list '(v8::Local<v8::Object>)'
..\src\odbc.cpp(143): error C2668: 'NanThrowError': ambiguous call to overloaded function [H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\build\odbc_bindings.vcxproj]
H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\node_modules\nan\nan.h(719): note: could be 'void NanThrowError(v8::Handle<v8::Value>)' (compiling source file ..\src\odbc.cpp)
H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\node_modules\nan\nan.h(711): note: or 'void NanThrowError(v8::Handle<v8::String>)' (compiling source file ..\src\odbc.cpp)
H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\node_modules\nan\nan.h(711): note: or 'void NanThrowError(const char *)' (compiling source file ..\src\odbc.cpp)
..\src\odbc.cpp(143): note: while trying to match the argument list '(v8::Local<v8::Object>)'
..\src\odbc_result.cpp(395): error C2668: 'NanThrowError': ambiguous call to overloaded function [H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\build\odbc_bindings.vcxproj]
H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\node_modules\nan\nan.h(719): note: could be 'void NanThrowError(v8::Handle<v8::Value>)' (compiling source file ..\src\odbc_result.cpp)
H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\node_modules\nan\nan.h(711): note: or 'void NanThrowError(v8::Handle<v8::String>)' (compiling source file ..\src\odbc_result.cpp)
H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\node_modules\nan\nan.h(711): note: or 'void NanThrowError(const char *)' (compiling source file ..\src\odbc_result.cpp)
..\src\odbc_result.cpp(395): note: while trying to match the argument list '(v8::Local<v8::Object>)'
..\src\odbc_connection.cpp(436): error C2668: 'NanThrowError': ambiguous call to overloaded function [H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\build\odbc_bindings.vcxproj]
H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\node_modules\nan\nan.h(719): note: could be 'void NanThrowError(v8::Handle<v8::Value>)' (compiling source file ..\src\odbc_connection.cpp)
..\src\odbc_statement.cpp(395): error C2668: 'NanThrowError': ambiguous call to overloaded function [H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\build\odbc_bindings.vcxproj]
H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\node_modules\nan\nan.h(719): note: could be 'void NanThrowError(v8::Handle<v8::Value>)' (compiling source file ..\src\odbc_statement.cpp)
H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\node_modules\nan\nan.h(711): note: or 'void NanThrowError(v8::Handle<v8::String>)' (compiling source file ..\src\odbc_connection.cpp)
H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\node_modules\nan\nan.h(711): note: or 'void NanThrowError(v8::Handle<v8::String>)' (compiling source file ..\src\odbc_statement.cpp)
H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\node_modules\nan\nan.h(711): note: or 'void NanThrowError(const char *)' (compiling source file ..\src\odbc_connection.cpp)
H:\workspace\VisualStudio 2015\Boelter Integration\node_modules\odbc\node_modules\nan\nan.h(711): note: or 'void NanThrowError(const char *)' (compiling source file ..\src\odbc_statement.cpp)
..\src\odbc_connection.cpp(436): note: while trying to match the argument list '(v8::Local<v8::Object>)'
..\src\odbc_statement.cpp(395): note: while trying to match the argument list '(v8::Local<v8::Object>)'