Shopify / buy-button-js

BuyButton.js is a highly customizable UI library for adding ecommerce functionality to any website.

Home Page:http://shopify.github.io/buy-button-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yarn fails to make 'fibers' module

NathanScheele opened this issue · comments

I would like to run BuyButtonJS locally to learn how to use it on Shopify. However, when I try to run yarn, it fails with the following error:

C:\Users\natha\Desktop\buy-button-js>yarn
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.9: The platform "win32" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/4] ⠂ node-sass
[-/4] ⠂ waiting...
[3/4] ⠂ fibers
error C:\Users\natha\Desktop\buy-button-js\node_modules\fibers: Command failed.
Exit code: 1
Command: node build.js || nodejs build.js
Arguments:
Directory: C:\Users\natha\Desktop\buy-button-js\node_modules\fibers
Output:
C:\Users\natha\Desktop\buy-button-js\node_modules\fibers>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --release )  else (node "" rebuild --release )
gyp info it worked if it ends with ok
gyp info using node-gyp@7.1.2
gyp info using node@16.0.0 | win32 | x64
gyp info find Python using Python version 2.7.18 found at "C:\Python27\python.exe"
gyp info find VS using VS2017 (15.9.28307.1500) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community"
gyp info find VS run with --verbose for detailed information
(node:3112) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
(Use \`node --trace-deprecation ...\` to show where the warning was created)
gyp info spawn C:\Python27\python.exe
gyp info spawn args [
gyp info spawn args   'C:\\Users\\natha\\AppData\\Roaming\\nvm\\v16.0.0\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\natha\\Desktop\\buy-button-js\\node_modules\\fibers\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\natha\\AppData\\Roaming\\nvm\\v16.0.0\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\natha\\AppData\\Local\\node-gyp\\Cache\\16.0.0\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\natha\\AppData\\Local\\node-gyp\\Cache\\16.0.0',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\natha\\AppData\\Roaming\\nvm\\v16.0.0\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\natha\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.0.0\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\natha\\Desktop\\buy-button-js\\node_modules\\fibers',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\Users\\natha\\Desktop\\buy-button-js\\node_modules\\fibers\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args   'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  fibers.cc
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(68): error C2143: syntax error: missing ';' before '<' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(68): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(68): error C2143: syntax error: missing ';' before '{' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(68): error C2447: '{': missing function header (old-style formal list?) [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(72): error C2143: syntax error: missing ';' before '<' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(72): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(72): error C2086: 'int uni::Handle': redefinition [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(72): error C2143: syntax error: missing ';' before '{' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(72): error C2447: '{': missing function header (old-style formal list?) [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(94): error C2143: syntax error: missing ';' before '<' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(94): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(94): error C2086: 'int uni::Handle': redefinition [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(94): error C2143: syntax error: missing ';' before '{' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(94): error C2447: '{': missing function header (old-style formal list?) [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(104): error C2143: syntax error: missing ';' before '<' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(104): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(104): error C2086: 'int uni::Handle': redefinition [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(104): error C2143: syntax error: missing ';' before '{' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(104): error C2447: '{': missing function header (old-style formal list?) [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(126): error C2061: syntax error: identifier 'Handle' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(139): error C2065: 'handle': undeclared identifier [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(139): error C2062: type 'int' unexpected [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(139): error C2143: syntax error: missing ';' before '{' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(139): error C2447: '{': missing function header (old-style formal list?) [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(143): error C2065: 'handle': undeclared identifier [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(143): error C2062: type 'int' unexpected [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(143): error C2143: syntax error: missing ';' before '{' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(143): error C2447: '{': missing function header (old-style formal list?) [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(148): error C2988: unrecognizable template declaration/definition [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(148): error C2143: syntax error: missing ';' before '<' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(148): error C2059: syntax error: '<' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(148): error C2065: 'T': undeclared identifier [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(148): error C2923: 'v8::Persistent': 'T' is not a valid template type argument for parameter 'T' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\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\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(148): error C2143: syntax error: missing ';' before '{' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(148): error C2447: '{': missing function header (old-style formal list?) [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(153): error C2065: 'handle': undeclared identifier [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(153): error C2988: unrecognizable template declaration/definition [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(153): error C2059: syntax error: 'const' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(153): error C2143: syntax error: missing ';' before '{' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(153): error C2447: '{': missing function header (old-style formal list?) [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(157): error C2065: 'handle': undeclared identifier [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(157): error C2275: 'uni::GetterCallbackInfo': illegal use of this type as an expression [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(115): note: see declaration of 'uni::GetterCallbackInfo'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(157): error C2146: syntax error: missing ')' before identifier 'info' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(157): error C2143: syntax error: missing ';' before '{' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(157): error C2447: '{': missing function header (old-style formal list?) [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(165): error C2143: syntax error: missing ';' before '<' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(165): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(165): error C2086: 'int uni::Handle': redefinition [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(165): error C2143: syntax error: missing ';' before '{' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(165): error C2447: '{': missing function header (old-style formal list?) [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(169): error C2143: syntax error: missing ';' before '<' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(169): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(169): error C2086: 'int uni::Handle': redefinition [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(169): error C2143: syntax error: missing ';' before '{' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(169): error C2447: '{': missing function header (old-style formal list?) [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(173): error C2143: syntax error: missing ';' before '<' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(173): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(173): error C2086: 'int uni::Handle': redefinition [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(173): error C2143: syntax error: missing ';' before '{' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(173): error C2447: '{': missing function header (old-style formal list?) [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(177): error C2143: syntax error: missing ';' before '<' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(177): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(177): error C2086: 'int uni::Handle': redefinition [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(177): error C2143: syntax error: missing ';' before '{' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(177): error C2447: '{': missing function header (old-style formal list?) [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(181): error C2143: syntax error: missing ';' before '<' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(181): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(181): error C2086: 'int uni::Handle': redefinition [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(181): error C2143: syntax error: missing ';' before '{' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(181): error C2447: '{': missing function header (old-style formal list?) [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(185): error C2143: syntax error: missing ';' before '<' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(185): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(185): error C2086: 'int uni::Handle': redefinition [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(191): error C2143: syntax error: missing ';' before '{' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(191): error C2447: '{': missing function header (old-style formal list?) [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(195): error C2143: syntax error: missing ';' before '<' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(195): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(195): error C2086: 'int uni::Handle': redefinition [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(68): note: see declaration of 'uni::Handle'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(198): error C2143: syntax error: missing ';' before '{' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(198): error C2447: '{': missing function header (old-style formal list?) [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(377): error C2061: syntax error: identifier 'Handle' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(383): error C2061: syntax error: identifier 'Handle' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(649): error C2143: syntax error: missing ';' before '<' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(649): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(649): error C2334: unexpected token(s) preceding '{'; skipping apparent function body [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(813): error C2061: syntax error: identifier 'Handle' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(380): error C2039: 'GetInternalPointer': is not a member of 'uni' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(23): note: see declaration of 'uni'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(380): error C2597: illegal reference to non-static member 'Fiber::handle' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(380): error C3861: 'GetInternalPointer': identifier not found [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(389): error C2672: 'uni::Reset': no matching overloaded function found [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\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\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(126): note: see declaration of 'uni::Reset'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(390): error C2672: 'uni::Reset': no matching overloaded function found [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\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\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(126): note: see declaration of 'uni::Reset'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(391): error C2672: 'uni::Reset': no matching overloaded function found [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\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\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(126): note: see declaration of 'uni::Reset'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(394): error C2039: 'SetInternalPointer': is not a member of 'uni' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(23): note: see declaration of 'uni'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(394): error C3861: 'SetInternalPointer': identifier not found [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(427): error C2039: 'IsNearDeath': is not a member of 'v8::Persistent<v8::Object,v8::NonCopyablePersistentTraits<T>>' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
          with
          [
              T=v8::Object
          ]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(364): note: see declaration of 'v8::Persistent<v8::Object,v8::NonCopyablePersistentTraits<T>>'    
          with
          [
              T=v8::Object
          ]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(464): error C2039: 'Deref': is not a member of 'uni' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(23): note: see declaration of 'uni'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(464): error C3861: 'Deref': identifier not found [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(486): error C2039: 'ThrowException': is not a member of 'uni' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(23): note: see declaration of 'uni'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(486): error C2039: 'NewLatin1String': is not a member of 'uni' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(23): note: see declaration of 'uni'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(486): error C3861: 'NewLatin1String': identifier not found [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(486): error C3861: 'ThrowException': identifier not found [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(488): error C2039: 'ThrowException': is not a member of 'uni' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(23): note: see declaration of 'uni'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(488): error C2039: 'NewLatin1String': is not a member of 'uni' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(23): note: see declaration of 'uni'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(488): error C3861: 'NewLatin1String': identifier not found [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(488): error C3861: 'ThrowException': identifier not found [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(490): error C2065: 'Handle': undeclared identifier [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(490): error C2275: 'v8::Value': illegal use of this type as an expression [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\appdata\local\node-gyp\cache\16.0.0\include\node\v8.h(2689): note: see declaration of 'v8::Value'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(490): error C2065: 'argv': undeclared identifier [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(491): error C2039: 'NewInstance': is not a member of 'uni' [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
  c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(23): note: see declaration of 'uni'
c:\users\natha\desktop\buy-button-js\node_modules\fibers\src\fibers.cc(491): fatal error C1003: error count exceeds 100; stopping compilation [C:\Users\natha\Desktop\buy-button-js\node_modules\fibers\build\fibers.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: \`C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe\` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\natha\AppData\Roaming\nvm\v16.0.0\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:365:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--release"      
gyp ERR! cwd C:\Users\natha\Desktop\buy-button-js\node_modules\fibers
gyp ERR! node -v v16.0.0
gyp ERR! node-gyp -v v7.1.2
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++\`

I am running Windows 10, version 10.0.19042 Build 19042,
Python v2.7.18,
Node v16.0.0,
npm v7.10.0,
yarn v1.22.10,
and a fresh clone of this repository.

I made sure to follow all of the instructions for installing node-gyp on Windows as detailed here: https://github.com/nodejs/node-gyp
I was also able to reproduce this on OSX.

Node v16 might be too new as .nvmrc specifies v8.1.4.

This worked for me, I was on the latest LTS version, v14.17.4 and changing to v8.1.4 resolved the issue.