Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't npm install winston-winlog w/Visual Studio 2013 Community/Express #6

Open
matthewadams opened this issue May 10, 2015 · 0 comments

Comments

@matthewadams
Copy link

I just tried npm install --save winston-winlog and got the errors below. Looks to be related to the fact that I'm using node 0.12.2 & npm 2.7.4. I'm on Win 7 Enterprise 64-bit with Visual Studio 2013 Community( and GitHub for Windows) installed.

Welcome to Portable Git (version ghfw)


Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.

matthew@ENTY7 ~/Documents/GitHub/xxxx (feature/9)
$ node --version
v0.12.2

matthew@ENTY7 ~/Documents/GitHub/xxxx (feature/9)
$ npm --version
2.7.4

matthew@ENTY7 ~/Documents/GitHub/xxxx (feature/9)
$ npm install --save winston-winlog
|
> windows-eventlog@1.0.0 install C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog
> node-gyp clean configure build || (exit 0)


C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog>if not defined npm_config_node_gyp (node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modu
les\node-gyp\bin\node-gyp.js" clean configure build )  else (clean configure build )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  EventLog.cpp
..\src\EventLog.cpp(19): error C2504: 'ObjectWrap' : base class undefined [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(61): error C2061: syntax error : identifier 'Arguments' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(72): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog
\build\EventLog.vcxproj]
..\src\EventLog.cpp(72): error C2143: syntax error : missing ',' before '&' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(104): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlo
g\build\EventLog.vcxproj]
..\src\EventLog.cpp(104): error C2143: syntax error : missing ',' before '&' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(28): error C2248: 'v8::HandleScope::HandleScope' : cannot access protected member declared in class 'v8::HandleScope' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_m
odules\windows-eventlog\build\EventLog.vcxproj]
          C:\Users\matthew\.node-gyp\0.12.2\deps\v8\include\v8.h(816) : see declaration of 'v8::HandleScope::HandleScope'
          C:\Users\matthew\.node-gyp\0.12.2\deps\v8\include\v8.h(800) : see declaration of 'v8::HandleScope'
..\src\EventLog.cpp(31): error C2664: 'v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate *,v8::FunctionCallback,v8::Handle<v8::Value>,v8::Handle<v8::Signature>,int)' : cannot convert argument 1 from 'v8::Handle<
v8::Value> (__cdecl *)(const int)' to 'v8::Isolate *' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
          There is no context in which this conversion is possible
..\src\EventLog.cpp(34): error C2660: 'v8::PersistentBase<T>::New' : function does not take 1 arguments [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\Even
tLog.vcxproj]
          with
          [
              T=v8::FunctionTemplate
          ]
..\src\EventLog.cpp(35): error C2819: type 'v8::Persistent<v8::FunctionTemplate,v8::NonCopyablePersistentTraits<T>>' does not have an overloaded member 'operator ->' [C:\Users\matthew\Documents\GitHub\xxxx\node_m
odules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
          with
          [
              T=v8::FunctionTemplate
          ]
          did you intend to use '.' instead?
..\src\EventLog.cpp(35): error C2039: 'InstanceTemplate' : is not a member of 'v8::Persistent<v8::FunctionTemplate,v8::NonCopyablePersistentTraits<T>>' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston
-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
          with
          [
              T=v8::FunctionTemplate
          ]
..\src\EventLog.cpp(35): error C2227: left of '->SetInternalFieldCount' must point to class/struct/union/generic type [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-event
log\build\EventLog.vcxproj]
..\src\EventLog.cpp(36): error C2819: type 'v8::Persistent<v8::FunctionTemplate,v8::NonCopyablePersistentTraits<T>>' does not have an overloaded member 'operator ->' [C:\Users\matthew\Documents\GitHub\xxxx\node_m
odules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
          with
          [
              T=v8::FunctionTemplate
          ]
          did you intend to use '.' instead?
..\src\EventLog.cpp(36): error C2039: 'SetClassName' : is not a member of 'v8::Persistent<v8::FunctionTemplate,v8::NonCopyablePersistentTraits<T>>' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-win
log\node_modules\windows-eventlog\build\EventLog.vcxproj]
          with
          [
              T=v8::FunctionTemplate
          ]
..\src\EventLog.cpp(36): error C2039: 'NewSymbol' : is not a member of 'v8::String' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
          C:\Users\matthew\.node-gyp\0.12.2\deps\v8\include\v8.h(1599) : see declaration of 'v8::String'
..\src\EventLog.cpp(36): error C3861: 'NewSymbol': identifier not found [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(39): error C2664: 'void node::NODE_SET_PROTOTYPE_METHOD(v8::Handle<v8::FunctionTemplate>,const char *,v8::FunctionCallback)' : cannot convert argument 1 from 'v8::Persistent<v8::FunctionTemplate,v8::NonCopyableP
ersistentTraits<T>>' to 'v8::Handle<v8::FunctionTemplate>' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
          with
          [
              T=v8::FunctionTemplate
          ]
          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
..\src\EventLog.cpp(41): error C2039: 'NewSymbol' : is not a member of 'v8::String' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
          C:\Users\matthew\.node-gyp\0.12.2\deps\v8\include\v8.h(1599) : see declaration of 'v8::String'
..\src\EventLog.cpp(42): error C2819: type 'v8::Persistent<v8::FunctionTemplate,v8::NonCopyablePersistentTraits<T>>' does not have an overloaded member 'operator ->' [C:\Users\matthew\Documents\GitHub\xxxx\node_m
odules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
          with
          [
              T=v8::FunctionTemplate
          ]
          did you intend to use '.' instead?
..\src\EventLog.cpp(42): error C2039: 'GetFunction' : is not a member of 'v8::Persistent<v8::FunctionTemplate,v8::NonCopyablePersistentTraits<T>>' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winl
og\node_modules\windows-eventlog\build\EventLog.vcxproj]
          with
          [
              T=v8::FunctionTemplate
          ]
..\src\EventLog.cpp(41): error C3861: 'NewSymbol': identifier not found [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(63): error C2065: 'args' : undeclared identifier [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(63): error C2065: 'argumentIndex' : undeclared identifier [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(63): error C2512: 'System::String::String' : no appropriate default constructor available [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\buil
d\EventLog.vcxproj]
..\src\EventLog.cpp(74): error C2248: 'v8::HandleScope::HandleScope' : cannot access protected member declared in class 'v8::HandleScope' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_m
odules\windows-eventlog\build\EventLog.vcxproj]
          C:\Users\matthew\.node-gyp\0.12.2\deps\v8\include\v8.h(816) : see declaration of 'v8::HandleScope::HandleScope'
          C:\Users\matthew\.node-gyp\0.12.2\deps\v8\include\v8.h(800) : see declaration of 'v8::HandleScope'
..\src\EventLog.cpp(76): error C2065: 'args' : undeclared identifier [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(76): error C2227: left of '->IsString' must point to class/struct/union/generic type [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\Eve
ntLog.vcxproj]
..\src\EventLog.cpp(78): error C2039: 'New' : is not a member of 'v8::String' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
          C:\Users\matthew\.node-gyp\0.12.2\deps\v8\include\v8.h(1599) : see declaration of 'v8::String'
..\src\EventLog.cpp(78): error C2664: 'v8::Handle<v8::Value> EventLog::New(const int)' : cannot convert argument 1 from 'const char [56]' to 'const int' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winsto
n-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
          There is no context in which this conversion is possible
..\src\EventLog.cpp(77): error C3861: 'ThrowException': identifier not found [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(83): error C2065: 'args' : undeclared identifier [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(86): error C2065: 'args' : undeclared identifier [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(86): error C2227: left of '->IsString' must point to class/struct/union/generic type [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\Eve
ntLog.vcxproj]
..\src\EventLog.cpp(89): error C2065: 'args' : undeclared identifier [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(94): error C2039: 'Wrap' : is not a member of 'EventLog' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
          ..\src\EventLog.cpp(18) : see declaration of 'EventLog'
..\src\EventLog.cpp(94): error C2065: 'args' : undeclared identifier [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(94): error C2228: left of '.This' must have class/struct/union [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
          type is 'unknown-type'
..\src\EventLog.cpp(95): error C2065: 'args' : undeclared identifier [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(95): error C2228: left of '.This' must have class/struct/union [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
          type is 'unknown-type'
..\src\EventLog.cpp(99): error C2039: 'New' : is not a member of 'v8::String' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
          C:\Users\matthew\.node-gyp\0.12.2\deps\v8\include\v8.h(1599) : see declaration of 'v8::String'
..\src\EventLog.cpp(99): error C2664: 'v8::Handle<v8::Value> EventLog::New(const int)' : cannot convert argument 1 from 'uint16_t *' to 'const int' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-win
log\node_modules\windows-eventlog\build\EventLog.vcxproj]
          There is no context in which this conversion is possible
..\src\EventLog.cpp(99): error C3861: 'ThrowException': identifier not found [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(106): error C2065: 'args' : undeclared identifier [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(106): error C2227: left of '->IsString' must point to class/struct/union/generic type [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\Ev
entLog.vcxproj]
..\src\EventLog.cpp(108): error C2039: 'New' : is not a member of 'v8::String' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
          C:\Users\matthew\.node-gyp\0.12.2\deps\v8\include\v8.h(1599) : see declaration of 'v8::String'
..\src\EventLog.cpp(108): error C2664: 'v8::Handle<v8::Value> EventLog::New(const int)' : cannot convert argument 1 from 'const char [43]' to 'const int' [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winst
on-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
          There is no context in which this conversion is possible
..\src\EventLog.cpp(107): error C3861: 'ThrowException': identifier not found [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(110): error C2065: 'args' : undeclared identifier [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(114): error C2065: 'args' : undeclared identifier [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(114): error C2227: left of '->IsString' must point to class/struct/union/generic type [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\Ev
entLog.vcxproj]
..\src\EventLog.cpp(117): error C2065: 'args' : undeclared identifier [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(122): error C2653: 'ObjectWrap' : is not a class or namespace name [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(122): error C2065: 'Unwrap' : undeclared identifier [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(122): error C2275: 'EventLog' : illegal use of this type as an expression [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxpr
oj]
..\src\EventLog.cpp(122): error C2065: 'args' : undeclared identifier [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
..\src\EventLog.cpp(122): error C2228: left of '.This' must have class/struct/union [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj]
          type is 'unknown-type'
..\src\EventLog.cpp(126): error C2660: 'v8::Undefined' : function does not take 0 arguments [C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog\build\EventLog.vcxproj
]
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "clean" "configure" "build"
gyp ERR! cwd C:\Users\matthew\Documents\GitHub\xxxx\node_modules\winston-winlog\node_modules\windows-eventlog
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
winston-winlog@0.2.1 node_modules\winston-winlog
└── windows-eventlog@1.0.0

matthew@ENTY7 ~/Documents/GitHub/xxxx (feature/9)
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant