Skip to content

Cannot install gRPC on Windows or Mac with various versions of Node and nearly identical errors #412

@Nantris

Description

@Nantris

Problem description

A clear and concise description of what the problem is.

Reproduction steps

For me, I can't find any situation in which this is not reproducible.

Environment

  • OS name, version and architecture: Windows 7 x64 & Mac OSX 10.13
  • Node version: 8.9.3 & 8.11.3
  • Node installation method Downloadable installer from site.
  • If applicable, compiler version: N/A?
  • Package name and version: gRPC@1.11.3

Additional context

Windows installation failure and the 3 lines preceding the failure (Node 8.11.3)

  z.vcxproj -> C:\projects\myApp\app\node_modules\grpc\build\Release\\libz.lib
  byte_buffer.cc
  call.cc
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2039: 'AsyncResource': is not a member of 'Nan' (compiling source file ..\ext\call.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan' (compiling source file ..\ext\call.cc)
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2143: syntax error: missing ';' before '*' (compiling source file ..\ext\call.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\ext\call.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2238: unexpected token(s) preceding ';' (compiling source file ..\ext\call.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(82): error C2039: 'AsyncResource': is not a member of 'Nan' (compiling source file ..\ext\call.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan' (compiling source file ..\ext\call.cc)
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(82): error C2143: syntax error: missing ';' before '*' (compiling source file ..\ext\call.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(82): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\ext\call.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(82): error C2238: unexpected token(s) preceding ';' (compiling source file ..\ext\call.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(71): error C2614: 'grpc::node::plugin_callback_data': illegal member initialization: 'async_resource' is not a base or member (compiling source file ..\ext\call.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(73): error C2065: 'async_resource': undeclared identifier (compiling source file ..\ext\call.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(73): error C2039: 'AsyncResource': is not a member of 'Nan' (compiling source file ..\ext\call.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan' (compiling source file ..\ext\call.cc)
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(73): error C2061: syntax error: identifier 'AsyncResource' (compiling source file ..\ext\call.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(76): error C2065: 'async_resource': undeclared identifier (compiling source file ..\ext\call.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(76): error C2541: 'delete': cannot delete objects that are not pointers (compiling source file ..\ext\call.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
..\ext\call.cc(452): error C2614: 'grpc::node::tag': illegal member initialization: 'async_resource' is not a base or member [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
..\ext\call.cc(454): error C2065: 'async_resource': undeclared identifier [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
..\ext\call.cc(454): error C2039: 'AsyncResource': is not a member of 'Nan' [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan'
..\ext\call.cc(454): error C2061: syntax error: identifier 'AsyncResource' [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
..\ext\call.cc(460): error C2065: 'async_resource': undeclared identifier [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
..\ext\call.cc(460): error C2541: 'delete': cannot delete objects that are not pointers [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
..\ext\call.cc(476): error C2039: 'async_resource': is not a member of 'grpc::node::tag' [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  c:\projects\myApp\app\node_modules\grpc\ext\call.h(101): note: see declaration of 'grpc::node::tag'
..\ext\call.cc(479): error C2039: 'async_resource': is not a member of 'grpc::node::tag' [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  c:\projects\myApp\app\node_modules\grpc\ext\call.h(101): note: see declaration of 'grpc::node::tag'
  call_credentials.cc
  channel.cc
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2039: 'AsyncResource': is not a member of 'Nan' (compiling source file ..\ext\call_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan' (compiling source file ..\ext\call_credentials.cc)
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2143: syntax error: missing ';' before '*' (compiling source file ..\ext\call_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\ext\call_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2238: unexpected token(s) preceding ';' (compiling source file ..\ext\call_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(82): error C2039: 'AsyncResource': is not a member of 'Nan' (compiling source file ..\ext\call_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan' (compiling source file ..\ext\call_credentials.cc)
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(82): error C2143: syntax error: missing ';' before '*' (compiling source file ..\ext\call_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(82): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\ext\call_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(82): error C2238: unexpected token(s) preceding ';' (compiling source file ..\ext\call_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(71): error C2614: 'grpc::node::plugin_callback_data': illegal member initialization: 'async_resource' is not a base or member (compiling source file ..\ext\call_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(73): error C2065: 'async_resource': undeclared identifier (compiling source file ..\ext\call_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(73): error C2039: 'AsyncResource': is not a member of 'Nan' (compiling source file ..\ext\call_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan' (compiling source file ..\ext\call_credentials.cc)
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(73): error C2061: syntax error: identifier 'AsyncResource' (compiling source file ..\ext\call_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(76): error C2065: 'async_resource': undeclared identifier (compiling source file ..\ext\call_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(76): error C2541: 'delete': cannot delete objects that are not pointers (compiling source file ..\ext\call_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
..\ext\call_credentials.cc(236): error C2039: 'async_resource': is not a member of 'grpc::node::plugin_callback_data' [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(64): note: see declaration of 'grpc::node::plugin_callback_data'
  channel_credentials.cc
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2039: 'AsyncResource': is not a member of 'Nan' (compiling source file ..\ext\channel.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan' (compiling source file ..\ext\channel.cc)
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2143: syntax error: missing ';' before '*' (compiling source file ..\ext\channel.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\ext\channel.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2238: unexpected token(s) preceding ';' (compiling source file ..\ext\channel.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  completion_queue.cc
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2039: 'AsyncResource': is not a member of 'Nan' (compiling source file ..\ext\channel_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan' (compiling source file ..\ext\channel_credentials.cc)
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2143: syntax error: missing ';' before '*' (compiling source file ..\ext\channel_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\ext\channel_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2238: unexpected token(s) preceding ';' (compiling source file ..\ext\channel_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(82): error C2039: 'AsyncResource': is not a member of 'Nan' (compiling source file ..\ext\channel_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan' (compiling source file ..\ext\channel_credentials.cc)
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(82): error C2143: syntax error: missing ';' before '*' (compiling source file ..\ext\channel_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(82): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\ext\channel_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(82): error C2238: unexpected token(s) preceding ';' (compiling source file ..\ext\channel_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(71): error C2614: 'grpc::node::plugin_callback_data': illegal member initialization: 'async_resource' is not a base or member (compiling source file ..\ext\channel_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(73): error C2065: 'async_resource': undeclared identifier (compiling source file ..\ext\channel_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(73): error C2039: 'AsyncResource': is not a member of 'Nan' (compiling source file ..\ext\channel_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan' (compiling source file ..\ext\channel_credentials.cc)
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(73): error C2061: syntax error: identifier 'AsyncResource' (compiling source file ..\ext\channel_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(76): error C2065: 'async_resource': undeclared identifier (compiling source file ..\ext\channel_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(76): error C2541: 'delete': cannot delete objects that are not pointers (compiling source file ..\ext\channel_credentials.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  node_grpc.cc
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2039: 'AsyncResource': is not a member of 'Nan' (compiling source file ..\ext\completion_queue.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan' (compiling source file ..\ext\completion_queue.cc)
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2143: syntax error: missing ';' before '*' (compiling source file ..\ext\completion_queue.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\ext\completion_queue.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2238: unexpected token(s) preceding ';' (compiling source file ..\ext\completion_queue.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  server.cc
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2039: 'AsyncResource': is not a member of 'Nan' (compiling source file ..\ext\node_grpc.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan' (compiling source file ..\ext\node_grpc.cc)
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2143: syntax error: missing ';' before '*' (compiling source file ..\ext\node_grpc.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\ext\node_grpc.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2238: unexpected token(s) preceding ';' (compiling source file ..\ext\node_grpc.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(82): error C2039: 'AsyncResource': is not a member of 'Nan' (compiling source file ..\ext\node_grpc.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan' (compiling source file ..\ext\node_grpc.cc)
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(82): error C2143: syntax error: missing ';' before '*' (compiling source file ..\ext\node_grpc.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(82): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\ext\node_grpc.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(82): error C2238: unexpected token(s) preceding ';' (compiling source file ..\ext\node_grpc.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(71): error C2614: 'grpc::node::plugin_callback_data': illegal member initialization: 'async_resource' is not a base or member (compiling source file ..\ext\node_grpc.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(73): error C2065: 'async_resource': undeclared identifier (compiling source file ..\ext\node_grpc.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(73): error C2039: 'AsyncResource': is not a member of 'Nan' (compiling source file ..\ext\node_grpc.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan' (compiling source file ..\ext\node_grpc.cc)
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(73): error C2061: syntax error: identifier 'AsyncResource' (compiling source file ..\ext\node_grpc.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(76): error C2065: 'async_resource': undeclared identifier (compiling source file ..\ext\node_grpc.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call_credentials.h(76): error C2541: 'delete': cannot delete objects that are not pointers (compiling source file ..\ext\node_grpc.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
..\ext\node_grpc.cc(60): error C2039: 'AsyncResource': is not a member of 'Nan' [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan'
..\ext\node_grpc.cc(60): error C2143: syntax error: missing ';' before '*' [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
..\ext\node_grpc.cc(60): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
..\ext\node_grpc.cc(60): error C2238: unexpected token(s) preceding ';' [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
..\ext\node_grpc.cc(206): error C2039: 'async_resource': is not a member of 'logger_state' [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  ..\ext\node_grpc.cc(58): note: see declaration of 'logger_state'
..\ext\node_grpc.cc(256): error C2039: 'async_resource': is not a member of 'logger_state' [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  ..\ext\node_grpc.cc(58): note: see declaration of 'logger_state'
..\ext\node_grpc.cc(256): error C2039: 'AsyncResource': is not a member of 'Nan' [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan'
..\ext\node_grpc.cc(256): error C2061: syntax error: identifier 'AsyncResource' [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  server_credentials.cc
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2039: 'AsyncResource': is not a member of 'Nan' (compiling source file ..\ext\server.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  C:\projects\myApp\app\node_modules\nan\nan.h(92): note: see declaration of 'Nan' (compiling source file ..\ext\server.cc)
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2143: syntax error: missing ';' before '*' (compiling source file ..\ext\server.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (compiling source file ..\ext\server.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
c:\projects\myApp\app\node_modules\grpc\ext\call.h(106): error C2238: unexpected token(s) preceding ';' (compiling source file ..\ext\server.cc) [C:\projects\myApp\app\node_modules\grpc\build\grpc_node.vcxproj]
  slice.cc
  timeval.cc
  win_delay_load_hook.cc
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\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\user\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=C:\\projects\\myApp\\app\\node_modules\\grpc\\src\\node\\extension_binary\\electron-v2.0-win32-x64-unknown\\grpc_node.node" "--module_name=grpc_node" "--module_path=C:\\projects\\myApp\\app\\node_modules\\grpc\\src\\node\\extension_binary\\electron-v2.0-win32-x64-unknown" "--napi_version=3" "--node_abi_napi=napi"
gyp ERR! cwd C:\projects\myApp\app\node_modules\grpc
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --library=static_library --module=C:\projects\myApp\app\node_modules\grpc\src\node\extension_binary\electron-v2.0-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\projects\myApp\app\node_modules\grpc\src\node\extension_binary\electron-v2.0-win32-x64-unknown --napi_version=3 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Projects\myApp\app\node_modules\grpc\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Windows_NT 6.1.7601
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Projects\\myApp\\app\\node_modules\\grpc\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd C:\projects\myApp\app\node_modules\grpc
node-pre-gyp ERR! node -v v8.11.3
node-pre-gyp ERR! node-pre-gyp -v v0.10.0
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --library=static_library --module=C:\projects\myApp\app\node_modules\grpc\src\node\extension_binary\electron-v2.0-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\projects\myApp\app\node_modules\grpc\src\node\extension_binary\electron-v2.0-win32-x64-unknown --napi_version=3 --node_abi_napi=napi' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.11.3 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.11.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\user\AppData\Roaming\npm-cache\_logs\2018-06-22T15_59_42_300Z-debug.log
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

OSX installation failure and the 3 lines preceding the failure (Node 8.11.3)

  LIBTOOL-STATIC Release/libboringssl.a
  CXX(target) Release/obj.target/grpc_node/ext/byte_buffer.o
  CXX(target) Release/obj.target/grpc_node/ext/call.o
In file included from ../ext/call.cc:26:
../ext/call.h:106:3: error: no type named 'AsyncResource' in namespace 'Nan'; did you mean '::node::AsyncResource'?
  Nan::AsyncResource *async_resource;
  ^~~~~~~~~~~~~~~~~~
  ::node::AsyncResource
/Users/user/.node-gyp/iojs-2.0.2/src/node.h:713:7: note: '::node::AsyncResource' declared here
class AsyncResource {
      ^
In file included from ../ext/call.cc:27:
../ext/call_credentials.h:82:3: error: no type named 'AsyncResource' in namespace 'Nan'; did you mean '::node::AsyncResource'?
  Nan::AsyncResource *async_resource;
  ^~~~~~~~~~~~~~~~~~
  ::node::AsyncResource
/Users/user/.node-gyp/iojs-2.0.2/src/node.h:713:7: note: '::node::AsyncResource' declared here
class AsyncResource {
      ^
In file included from ../ext/call.cc:27:
../ext/call_credentials.h:73:26: error: no type named 'AsyncResource' in namespace 'Nan'; did you mean '::node::AsyncResource'?
    async_resource = new Nan::AsyncResource("grpc:plugin_callback_data");
                         ^~~~~~~~~~~~~~~~~~
                         ::node::AsyncResource
/Users/user/.node-gyp/iojs-2.0.2/src/node.h:713:7: note: '::node::AsyncResource' declared here
class AsyncResource {
      ^
In file included from ../ext/call.cc:27:
../ext/call_credentials.h:73:31: error: no matching constructor for initialization of '::node::AsyncResource'
    async_resource = new Nan::AsyncResource("grpc:plugin_callback_data");
                              ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/user/.node-gyp/iojs-2.0.2/src/node.h:713:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [26]' to 'const node::AsyncResource' for 1st argument
class AsyncResource {
      ^
/Users/user/.node-gyp/iojs-2.0.2/src/node.h:715:5: note: candidate constructor not viable: requires at least 3 arguments, but 1 was provided
    AsyncResource(v8::Isolate* isolate,
    ^
/Users/user/.node-gyp/iojs-2.0.2/src/node.h:725:5: note: candidate constructor not viable: requires at least 3 arguments, but 1 was provided
    AsyncResource(v8::Isolate* isolate,
    ^
../ext/call.cc:454:24: error: no type named 'AsyncResource' in namespace 'Nan'; did you mean '::node::AsyncResource'?
  async_resource = new Nan::AsyncResource("grpc:tag");  // Needs handle scope.
                       ^~~~~~~~~~~~~~~~~~
                       ::node::AsyncResource
/Users/user/.node-gyp/iojs-2.0.2/src/node.h:713:7: note: '::node::AsyncResource' declared here
class AsyncResource {
      ^
../ext/call.cc:454:29: error: no matching constructor for initialization of '::node::AsyncResource'
  async_resource = new Nan::AsyncResource("grpc:tag");  // Needs handle scope.
                            ^             ~~~~~~~~~~
/Users/user/.node-gyp/iojs-2.0.2/src/node.h:713:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [9]' to 'const node::AsyncResource' for 1st argument
class AsyncResource {
      ^
/Users/user/.node-gyp/iojs-2.0.2/src/node.h:715:5: note: candidate constructor not viable: requires at least 3 arguments, but 1 was provided
    AsyncResource(v8::Isolate* isolate,
    ^
/Users/user/.node-gyp/iojs-2.0.2/src/node.h:725:5: note: candidate constructor not viable: requires at least 3 arguments, but 1 was provided
    AsyncResource(v8::Isolate* isolate,
    ^
../ext/call.cc:476:15: error: no matching member function for call to 'Call'
    callback->Call(2, argv, tag_struct->async_resource);
    ~~~~~~~~~~^~~~
../../nan/nan.h:1433:3: note: candidate function not viable: no known conversion from 'int' to 'v8::Local<v8::Object>' for 1st argument
  Call(v8::Local<v8::Object> target
  ^
../../nan/nan.h:1445:3: note: candidate function not viable: requires 2 arguments, but 3 were provided
  Call(int argc, v8::Local<v8::Value> argv[]) const {
  ^
../ext/call.cc:479:15: error: no matching member function for call to 'Call'
    callback->Call(1, argv, tag_struct->async_resource);
    ~~~~~~~~~~^~~~
../../nan/nan.h:1433:3: note: candidate function not viable: no known conversion from 'int' to 'v8::Local<v8::Object>' for 1st argument
  Call(v8::Local<v8::Object> target
  ^
../../nan/nan.h:1445:3: note: candidate function not viable: requires 2 arguments, but 3 were provided
  Call(int argc, v8::Local<v8::Value> argv[]) const {
  ^
8 errors generated.
make: *** [Release/obj.target/grpc_node/ext/call.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Darwin 17.0.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/Users/user/Documents/myApp/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-darwin-x64-unknown/grpc_node.node" "--module_name=grpc_node" "--module_path=/Users/user/Documents/myApp/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-darwin-x64-unknown" "--napi_version=3" "--node_abi_napi=napi"
gyp ERR! cwd /Users/user/Documents/myApp/app/node_modules/grpc
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/Users/user/Documents/myApp/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/Users/user/Documents/myApp/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-darwin-x64-unknown --napi_version=3 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/user/Documents/myApp/app/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Darwin 17.0.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/user/Documents/myApp/app/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /Users/user/Documents/myApp/app/node_modules/grpc
node-pre-gyp ERR! node -v v8.11.3
node-pre-gyp ERR! node-pre-gyp -v v0.10.0
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/Users/user/Documents/myApp/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/Users/user/Documents/myApp/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-darwin-x64-unknown --napi_version=3 --node_abi_napi=napi' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.11.3 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the grpc@1.11.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/user/.npm/_logs/2018-06-22T17_10_14_403Z-debug.log
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions