laverdet / node-fibers

Fiber/coroutine support for v8 and node.
MIT License
3.56k stars 224 forks source link

Cannot build fibers@2.0.2 #426

Closed Tvde1 closed 4 years ago

Tvde1 commented 4 years ago

Hi, I cannot install fibers version 2.0.2 which is used in a project I'm trying to build.

When I run e.g. npm i -g fibers@2.0.2, I get the log I pasted below.

I have latest version of the c++ build tools and node-gyp.


C:\Users\timess\Projects\node-fibers>npm install -g fibers@2.0.2

> fibers@2.0.2 install C:\Users\timess\AppData\Roaming\npm\node_modules\fibers
> node build.js || nodejs build.js

C:\Users\timess\AppData\Roaming\npm\node_modules\fibers>if not defined npm_config_node_gyp (node "C:\Users\timess\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --release )  else (node "C:\Users\timess\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild --release )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  fibers.cc
  coroutine.cc
  win_delay_load_hook.cc
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(68): error C2143: syntax error: missing ';' before '<' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(68): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(68): error C2143: syntax error: missing ';' before '{' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(68): error C2447: '{': missing function header (old-style formal list?) [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(72): error C2143: syntax error: missing ';' before '<' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(72): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(72): error C2086: 'int uni::Handle': redefinition [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(72): error C2143: syntax error: missing ';' before '{' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(72): error C2447: '{': missing function header (old-style formal list?) [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(94): error C2143: syntax error: missing ';' before '<' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(94): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(94): error C2086: 'int uni::Handle': redefinition [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(94): error C2143: syntax error: missing ';' before '{' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(94): error C2447: '{': missing function header (old-style formal list?) [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(104): error C2143: syntax error: missing ';' before '<' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(104): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(104): error C2086: 'int uni::Handle': redefinition [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(104): error C2143: syntax error: missing ';' before '{' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(104): error C2447: '{': missing function header (old-style formal list?) [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(126): error C2061: syntax error: identifier 'Handle' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(139): error C2065: 'handle': undeclared identifier [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(139): error C2062: type 'int' unexpected [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(139): error C2143: syntax error: missing ';' before '{' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(139): error C2447: '{': missing function header (old-style formal list?) [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(143): error C2065: 'handle': undeclared identifier [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(143): error C2062: type 'int' unexpected [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(143): error C2143: syntax error: missing ';' before '{' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(143): error C2447: '{': missing function header (old-style formal list?) [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(148): error C2988: unrecognizable template declaration/definition [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(148): error C2143: syntax error: missing ';' before '<' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(148): error C2059: syntax error: '<' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(148): error C2065: 'T': undeclared identifier [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(148): error C2923: 'v8::Persistent': 'T' is not a valid template type argument for parameter 'T' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(148): error C3203: 'NonCopyablePersistentTraits': unspecialized class template can't be used as a template argument for template parameter 'M', expected a real type [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(148): error C2143: syntax error: missing ';' before '{' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(148): error C2447: '{': missing function header (old-style formal list?) [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(153): error C2065: 'handle': undeclared identifier [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(153): error C2988: unrecognizable template declaration/definition [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(153): error C2059: syntax error: 'const' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(153): error C2143: syntax error: missing ';' before '{' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(153): error C2447: '{': missing function header (old-style formal list?) [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(157): error C2065: 'handle': undeclared identifier [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(157): error C2275: 'uni::GetterCallbackInfo': illegal use of this type as an expression [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(115): note: see declaration of 'uni::GetterCallbackInfo'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(157): error C2146: syntax error: missing ')' before identifier 'info' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(157): error C2143: syntax error: missing ';' before '{' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(157): error C2447: '{': missing function header (old-style formal list?) [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(165): error C2143: syntax error: missing ';' before '<' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(165): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(165): error C2086: 'int uni::Handle': redefinition [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(165): error C2143: syntax error: missing ';' before '{' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(165): error C2447: '{': missing function header (old-style formal list?) [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(169): error C2143: syntax error: missing ';' before '<' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(169): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(169): error C2086: 'int uni::Handle': redefinition [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(169): error C2143: syntax error: missing ';' before '{' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(169): error C2447: '{': missing function header (old-style formal list?) [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(173): error C2143: syntax error: missing ';' before '<' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(173): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(173): error C2086: 'int uni::Handle': redefinition [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(173): error C2143: syntax error: missing ';' before '{' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(173): error C2447: '{': missing function header (old-style formal list?) [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(177): error C2143: syntax error: missing ';' before '<' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(177): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(177): error C2086: 'int uni::Handle': redefinition [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(177): error C2143: syntax error: missing ';' before '{' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(177): error C2447: '{': missing function header (old-style formal list?) [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(181): error C2143: syntax error: missing ';' before '<' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(181): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(181): error C2086: 'int uni::Handle': redefinition [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(181): error C2143: syntax error: missing ';' before '{' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(181): error C2447: '{': missing function header (old-style formal list?) [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(185): error C2143: syntax error: missing ';' before '<' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(185): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(185): error C2086: 'int uni::Handle': redefinition [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(191): error C2143: syntax error: missing ';' before '{' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(191): error C2447: '{': missing function header (old-style formal list?) [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(195): error C2143: syntax error: missing ';' before '<' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(195): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(195): error C2086: 'int uni::Handle': redefinition [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(198): error C2143: syntax error: missing ';' before '{' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(198): error C2447: '{': missing function header (old-style formal list?) [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(377): error C2061: syntax error: identifier 'Handle' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(383): error C2061: syntax error: identifier 'Handle' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(649): error C2143: syntax error: missing ';' before '<' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(649): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(649): error C2334: unexpected token(s) preceding '{'; skipping apparent function body [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(813): error C2061: syntax error: identifier 'Handle' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(380): error C2039: 'GetInternalPointer': is not a member of 'uni' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(23): note: see declaration of 'uni'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(380): error C2597: illegal reference to non-static member 'Fiber::handle' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(380): error C3861: 'GetInternalPointer': identifier not found [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(389): error C2672: 'uni::Reset': no matching overloaded function found [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(389): error C2780: 'void uni::Reset(v8::Isolate *,v8::Persistent<T,v8::NonCopyablePersistentTraits<T>> &)': expects 2 arguments - 3 provided [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(126): note: see declaration of 'uni::Reset'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(390): error C2672: 'uni::Reset': no matching overloaded function found [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(390): error C2780: 'void uni::Reset(v8::Isolate *,v8::Persistent<T,v8::NonCopyablePersistentTraits<T>> &)': expects 2 arguments - 3 provided [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(126): note: see declaration of 'uni::Reset'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(391): error C2672: 'uni::Reset': no matching overloaded function found [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(391): error C2780: 'void uni::Reset(v8::Isolate *,v8::Persistent<T,v8::NonCopyablePersistentTraits<T>> &)': expects 2 arguments - 3 provided [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(126): note: see declaration of 'uni::Reset'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(394): error C2039: 'SetInternalPointer': is not a member of 'uni' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(23): note: see declaration of 'uni'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(394): error C3861: 'SetInternalPointer': identifier not found [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(427): error C2039: 'IsNearDeath': is not a member of 'v8::Persistent<v8::Object,v8::NonCopyablePersistentTraits<T>>' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
          with
          [
              T=v8::Object
          ]
  c:\users\timess\appdata\local\node-gyp\cache\12.13.1\include\node\node.h(817): note: see declaration of 'v8::Persistent<v8::Object,v8::NonCopyablePersistentTraits<T>>'
          with
          [
              T=v8::Object
          ]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(464): error C2039: 'Deref': is not a member of 'uni' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(23): note: see declaration of 'uni'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(464): error C3861: 'Deref': identifier not found [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(486): error C2039: 'ThrowException': is not a member of 'uni' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(23): note: see declaration of 'uni'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(486): error C2039: 'NewLatin1String': is not a member of 'uni' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(23): note: see declaration of 'uni'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(486): error C3861: 'NewLatin1String': identifier not found [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(486): error C3861: 'ThrowException': identifier not found [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(488): error C2039: 'ThrowException': is not a member of 'uni' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(23): note: see declaration of 'uni'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(488): error C2039: 'NewLatin1String': is not a member of 'uni' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(23): note: see declaration of 'uni'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(488): error C3861: 'NewLatin1String': identifier not found [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(488): error C3861: 'ThrowException': identifier not found [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(490): error C2065: 'Handle': undeclared identifier [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(490): error C2275: 'v8::Value': illegal use of this type as an expression [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\local\node-gyp\cache\12.13.1\include\node\v8.h(2284): note: see declaration of 'v8::Value'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(490): error C2065: 'argv': undeclared identifier [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(491): error C2039: 'NewInstance': is not a member of 'uni' [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
  c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(23): note: see declaration of 'uni'
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\fibers.cc(491): fatal error C1003: error count exceeds 100; stopping compilation [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
c:\users\timess\appdata\roaming\npm\node_modules\fibers\src\coroutine.cc(138): warning C4552: '!': result of expression not used [C:\Users\timess\AppData\Roaming\npm\node_modules\fibers\build\fibers.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\timess\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\timess\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--release"
gyp ERR! cwd C:\Users\timess\AppData\Roaming\npm\node_modules\fibers
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
node-gyp exited with code: 1
Please make sure you are using a supported platform and node version. If you
would like to compile fibers on this machine please make sure you have setup your
build environment--
Windows + OS X instructions here: https://github.com/nodejs/node-gyp
Ubuntu users please run: `sudo apt-get install g++ build-essential`
Alpine users please run: `sudo apk add python make g++`
'nodejs' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fibers@2.0.2 install: `node build.js || nodejs build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fibers@2.0.2 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\timess\AppData\Roaming\npm-cache\_logs\2019-11-25T15_18_01_858Z-debug.log```
Julix91 commented 4 years ago

Basically your options are upgrade to a higher version of fibers or a lower version of node. https://stackoverflow.com/questions/56020772/npm-err-failed-at-the-fibers3-1-1-install-script

Also see here: https://github.com/laverdet/node-fibers/issues/409

I had the same issue just now (@fibers@3.1.1) - I deleted the package-lock.json file, updated the fibers number in the package.json file and then npm installed. Seems to have completed - but I haven't looked at anything yet, so here's to hoping there wasn't any breaking changes.

laverdet commented 4 years ago

upgrade fibers