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

error C2039: 'Handle': is not a member of 'v8' (compiling source file ..\src\bufferutil.cc) #13

Open
camohub opened this issue Oct 21, 2020 · 4 comments

Comments

@camohub
Copy link

camohub commented Oct 21, 2020

When I try to run npm install dns I am getting thi error.

OS is Win 10
npm -v 6.14.6
node -v 12.18.3

  c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(107): error C2039: 'Handle': is
not a member of 'v8' (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node _modules\ws\build\bufferutil.vcxproj]
  c:\users\vladi\appdata\local\node-gyp\cache\12.18.3\include\node\v8-platform.h(16): note: see declaration of 'v8' (compiling source file ..\src\bufferutil.cc)
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(107): error C2061: syntax error:  identifier 'Handle' (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node _modules\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(109): error C2065: 'def': undecl ared identifier (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modu les\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(111): error C2065: 'opt': undecl ared identifier (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modu les\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(112): error C2065: 'opt': undecl ared identifier (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modu les\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(115): error C2065: 'opt': undecl ared identifier (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modu les\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(116): error C2065: 'opt': undecl ared identifier (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modu les\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(122): error C2039: 'Handle': is
not a member of 'v8' (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node _modules\ws\build\bufferutil.vcxproj]
  c:\users\vladi\appdata\local\node-gyp\cache\12.18.3\include\node\v8-platform.h(16): note: see declaration of 'v8' (compiling source file ..\src\bufferutil.cc)
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(122): error C2061: syntax error:  identifier 'Handle' (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node _modules\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(122): error C2084: function 'boo l NanBooleanOptionValue(v8::Local<v8::Object>)' already has a body (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node _modules\socket.io\node_modules\engine.io\node_modules\ws\build\bufferutil.vcxproj]
  c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(105): note: see previous defin
  ition of 'NanBooleanOptionValue' (compiling source file ..\src\bufferutil.cc)
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(123): error C2065: 'opt': undecl ared identifier (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modu les\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(123): error C2065: 'NanBooleanOp tionValue': undeclared identifier (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\e ngine.io\node_modules\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(128): error C2039: 'Handle': is
not a member of 'v8' (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node _modules\ws\build\bufferutil.vcxproj]
  c:\users\vladi\appdata\local\node-gyp\cache\12.18.3\include\node\v8-platform.h(16): note: see declaration of 'v8' (compiling source file ..\src\bufferutil.cc)
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(128): error C2061: syntax error:  identifier 'Handle' (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node _modules\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(132): error C2065: 'opt': undecl ared identifier (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modu les\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(133): error C2065: 'opt': undecl ared identifier (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modu les\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(134): error C2065: 'opt': undecl ared identifier (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modu les\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(135): error C2065: 'def': undecl ared identifier (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modu les\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(213): error C2039: 'ThrowExcepti on': is not a member of 'v8' (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine .io\node_modules\ws\build\bufferutil.vcxproj]
  c:\users\vladi\appdata\local\node-gyp\cache\12.18.3\include\node\v8-platform.h(16): note: see declaration of 'v8' (compiling source file ..\src\bufferutil.cc)
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(213): error C2039: 'New': is not  a member of 'v8::String' (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io \node_modules\ws\build\bufferutil.vcxproj]
  c:\users\vladi\appdata\local\node-gyp\cache\12.18.3\include\node\v8.h(2798): note: see declaration of 'v8::String' (compiling source file ..\src\bufferutil.cc)
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(213): error C3861: 'New': identi fier not found (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modul es\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(213): error C3861: 'ThrowExcepti on': identifier not found (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io \node_modules\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(216): error C2039: 'Handle': is
not a member of 'v8' (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node _modules\ws\build\bufferutil.vcxproj]
  c:\users\vladi\appdata\local\node-gyp\cache\12.18.3\include\node\v8-platform.h(16): note: see declaration of 'v8' (compiling source file ..\src\bufferutil.cc)
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(216): error C2065: 'Handle': und eclared identifier (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_m odules\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(216): error C2275: 'v8::Value':
illegal use of this type as an expression (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_m odules\engine.io\node_modules\ws\build\bufferutil.vcxproj]
  c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(216): note: see declaration of
   'v8::Value' (compiling source file ..\src\bufferutil.cc)
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(216): error C2065: 'error': unde clared identifier (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_mo dules\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(216): error C2182: 'NanThrowErro r': illegal use of type 'void' (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engi ne.io\node_modules\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(216): error C7525: inline variab les require at least '/std:c++17' (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\e ngine.io\node_modules\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(216): error C2365: 'NanThrowErro r': redefinition; previous definition was 'function' (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socke t.io\node_modules\engine.io\node_modules\ws\build\bufferutil.vcxproj]
  c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(212): note: see declaration of
   'NanThrowError' (compiling source file ..\src\bufferutil.cc)
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(216): error C2448: 'NanThrowErro r': function-style initializer appears to be a function definition (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node _modules\socket.io\node_modules\engine.io\node_modules\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(222): error C2039: 'New': is not  a member of 'v8::String' (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io \node_modules\ws\build\bufferutil.vcxproj]
  c:\users\vladi\appdata\local\node-gyp\cache\12.18.3\include\node\v8.h(2798): note: see declaration of 'v8::String' (compiling source file ..\src\bufferutil.cc)
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(222): error C3861: 'New': identi fier not found (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modul es\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(224): error C2039: 'New': is not  a member of 'v8::String' (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io \node_modules\ws\build\bufferutil.vcxproj]
  c:\users\vladi\appdata\local\node-gyp\cache\12.18.3\include\node\v8.h(2798): note: see declaration of 'v8::String' (compiling source file ..\src\bufferutil.cc)
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(224): error C3861: 'New': identi fier not found (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modul es\ws\build\bufferutil.vcxproj]
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(224): error C2660: 'v8::Integer: :New': function does not take 1 arguments (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_m odules\engine.io\node_modules\ws\build\bufferutil.vcxproj]
  c:\users\vladi\appdata\local\node-gyp\cache\12.18.3\include\node\v8.h(3294): note: see declaration of 'v8::Integer::New' (compiling source file ..\src\bufferutil.cc)
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(225): error C2665: 'NanThrowErro r': none of the 2 overloads could convert all the argument types (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_m odules\socket.io\node_modules\engine.io\node_modules\ws\build\bufferutil.vcxproj]
  c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(212): note: could be 'void Nan
  ThrowError(const char *)' (compiling source file ..\src\bufferutil.cc)
  c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(225): note: while trying to ma
  tch the argument list '(v8::Local<v8::Value>)' (compiling source file ..\src\bufferutil.cc)
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(229): error C2039: 'ThrowExcepti on': is not a member of 'v8' (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine .io\node_modules\ws\build\bufferutil.vcxproj]
  c:\users\vladi\appdata\local\node-gyp\cache\12.18.3\include\node\v8-platform.h(16): note: see declaration of 'v8' (compiling source file ..\src\bufferutil.cc)
c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\nan\nan.h(229): error C2039: 'New': is not  a member of 'v8::String' (compiling source file ..\src\bufferutil.cc) [c:\wamp64-3-2-0\www\eliadmin-npm-test\node_modules\tomahawk\node_modules\socket.io\node_modules\engine.io \node_modules\ws\build\bufferutil.vcxproj]
@camohub
Copy link
Author

camohub commented Oct 27, 2020

Can somebody tell me please how to fix it? Excluding downgrade.

@camohub
Copy link
Author

camohub commented Nov 6, 2020

Is anybody here?

@z639
Copy link

z639 commented Nov 21, 2020

There is a similar issues here nodejs/node-gyp#1941 and the general advice was to use and older version of node. Although it doesn't look to be node itself but one of the dependences.

@z639
Copy link

z639 commented Nov 21, 2020

I'm trying to find a solution to a different repo without a downgrade too, but so far no luck. Let me know if you have any joy with that.

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

2 participants