Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Compiling doesn't seem to work on node v12? #1

Open
sontek opened this issue Jun 21, 2019 · 22 comments
Open

Compiling doesn't seem to work on node v12? #1

sontek opened this issue Jun 21, 2019 · 22 comments

Comments

@sontek
Copy link

sontek commented Jun 21, 2019

C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium>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 )  else (node "" rebuild )
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@12.4.0 | win32 | x64
gyp info spawn C:\Users\sonte\.windows-build-tools\python27\python.EXE
gyp info spawn args [
gyp info spawn args   'C:\\Program ' +
gyp info spawn args     'Files\\nodejs\\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   '-G',
gyp info spawn args   'msvs_version=2015',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\sonte\\Documents\\GitHub\\eventray_onsite\\node_modules\\node-pdfium\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\sonte\\.node-gyp\\12.4.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\\sonte\\.node-gyp\\12.4.0',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Program ' +
gyp info spawn args     'Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\Users\\sonte\\.node-gyp\\12.4.0\\<(target_arch)\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\sonte\\Documents\\GitHub\\eventray_onsite\\node_modules\\node-pdfium',
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\\sonte\\Documents\\GitHub\\eventray_onsite\\node_modules\\node-pdfium\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\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.
  Copying C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\x64/lib/pdfium.dll.lib to C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium/build/Release\pdfium.dll.lib
          1 file(s) copied.
  Copying C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\x64/bin/pdfium.dll to C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium/build/Release\pdfium.dll
          1 file(s) copied.
  pdfium_option.cc
  printer_win.cc
  pdfium_imp.cc
  pdfium.cc
  win_delay_load_hook.cc
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\printer_win.cc(8): error C2661: 'v8::Value::ToString': no overloaded function takes 0 arguments [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\printer_win.cc(10): error C2440: '<function-style-cast>': cannot convert from 'const v8::Local<v8::String>' to 'v8::String::Value' [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\printer_win.cc(10): note: No constructor could take the source type, or constructor overload resolution was ambiguous
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\printer_win.cc(10): error C2660: 'CreateDCW': function does not take 3 arguments [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\wingdi.h(3761): note: see declaration of 'CreateDCW' (compiling source file ..\src\printer_win.cc)
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\printer_win.cc(16): error C2661: 'v8::Value::ToString': no overloaded function takes 0 arguments [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\printer_win.cc(20): error C2440: '<function-style-cast>': cannot convert from 'const v8::Local<v8::String>' to 'v8::String::Value' [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\printer_win.cc(20): note: No constructor could take the source type, or constructor overload resolution was ambiguous
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(18): error C2661: 'v8::Value::ToObject': no overloaded function takes 0 arguments [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(20): error C3536: 'obj': cannot be used before it is initialized [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(20): error C2665: 'Nan::Get': none of the 2 overloads could convert all the argument types [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\documents\github\eventray_onsite\node_modules\nan\nan_maybe_43_inl.h(157): note: could be 'v8::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object>,uint32_t)' (compiling source file ..\src\pdfium_option.cc)
  c:\users\sonte\documents\github\eventray_onsite\node_modules\nan\nan_maybe_43_inl.h(147): note: or       'v8::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object>,v8::Local<v8::Value>)' (compiling source file ..\src\pdfium_option.cc)
  c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(20): note: while trying to match the argument list '(int, v8::Local<v8::String>)'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(21): error C2665: 'Nan::Get': none of the 2 overloads could convert all the argument types [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\documents\github\eventray_onsite\node_modules\nan\nan_maybe_43_inl.h(157): note: could be 'v8::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object>,uint32_t)' (compiling source file ..\src\pdfium_option.cc)
  c:\users\sonte\documents\github\eventray_onsite\node_modules\nan\nan_maybe_43_inl.h(147): note: or       'v8::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object>,v8::Local<v8::Value>)' (compiling source file ..\src\pdfium_option.cc)
  c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(21): note: while trying to match the argument list '(int, v8::Local<v8::String>)'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(22): error C2665: 'Nan::Get': none of the 2 overloads could convert all the argument types [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\documents\github\eventray_onsite\node_modules\nan\nan_maybe_43_inl.h(157): note: could be 'v8::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object>,uint32_t)' (compiling source file ..\src\pdfium_option.cc)
  c:\users\sonte\documents\github\eventray_onsite\node_modules\nan\nan_maybe_43_inl.h(147): note: or       'v8::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object>,v8::Local<v8::Value>)' (compiling source file ..\src\pdfium_option.cc)
  c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(22): note: while trying to match the argument list '(int, v8::Local<v8::String>)'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(23): error C2665: 'Nan::Get': none of the 2 overloads could convert all the argument types [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\documents\github\eventray_onsite\node_modules\nan\nan_maybe_43_inl.h(157): note: could be 'v8::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object>,uint32_t)' (compiling source file ..\src\pdfium_option.cc)
  c:\users\sonte\documents\github\eventray_onsite\node_modules\nan\nan_maybe_43_inl.h(147): note: or       'v8::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object>,v8::Local<v8::Value>)' (compiling source file ..\src\pdfium_option.cc)
  c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(23): note: while trying to match the argument list '(int, v8::Local<v8::String>)'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(29): error C2665: 'Nan::Get': none of the 2 overloads could convert all the argument types [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\documents\github\eventray_onsite\node_modules\nan\nan_maybe_43_inl.h(157): note: could be 'v8::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object>,uint32_t)' (compiling source file ..\src\pdfium_option.cc)
  c:\users\sonte\documents\github\eventray_onsite\node_modules\nan\nan_maybe_43_inl.h(147): note: or       'v8::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object>,v8::Local<v8::Value>)' (compiling source file ..\src\pdfium_option.cc)
  c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(31): note: while trying to match the argument list '(int, v8::Local<v8::String>)'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(33): error C3536: 'o': cannot be used before it is initialized [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(33): error C2672: 'v8::Local<v8::Array>::Cast': no matching overloaded function found [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(33): error C2784: 'v8::Local<v8::Array> v8::Local<v8::Array>::Cast(v8::Local<S>)': could not deduce template argument for 'v8::Local<S>' from 'int' [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.node-gyp\12.4.0\include\node\v8.h(256): note: see declaration of 'v8::Local<v8::Array>::Cast'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(34): error C3536: 'arr': cannot be used before it is initialized [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(36): error C2665: 'Nan::Get': none of the 2 overloads could convert all the argument types [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\documents\github\eventray_onsite\node_modules\nan\nan_maybe_43_inl.h(157): note: could be 'v8::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object>,uint32_t)' (compiling source file ..\src\pdfium_option.cc)
  c:\users\sonte\documents\github\eventray_onsite\node_modules\nan\nan_maybe_43_inl.h(147): note: or       'v8::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object>,v8::Local<v8::Value>)' (compiling source file ..\src\pdfium_option.cc)
  c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(36): note: while trying to match the argument list '(int, unsigned int)'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(36): error C2672: 'v8::Local<v8::Array>::Cast': no matching overloaded function found [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(36): error C2530: 'item': references must be initialized [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(38): error C2665: 'Nan::Get': none of the 2 overloads could convert all the argument types [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\documents\github\eventray_onsite\node_modules\nan\nan_maybe_43_inl.h(157): note: could be 'v8::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object>,uint32_t)' (compiling source file ..\src\pdfium_option.cc)
  c:\users\sonte\documents\github\eventray_onsite\node_modules\nan\nan_maybe_43_inl.h(147): note: or       'v8::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object>,v8::Local<v8::Value>)' (compiling source file ..\src\pdfium_option.cc)
  c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(38): note: while trying to match the argument list '(int, int)'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(39): error C2665: 'Nan::Get': none of the 2 overloads could convert all the argument types [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\documents\github\eventray_onsite\node_modules\nan\nan_maybe_43_inl.h(157): note: could be 'v8::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object>,uint32_t)' (compiling source file ..\src\pdfium_option.cc)
  c:\users\sonte\documents\github\eventray_onsite\node_modules\nan\nan_maybe_43_inl.h(147): note: or       'v8::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object>,v8::Local<v8::Value>)' (compiling source file ..\src\pdfium_option.cc)
  c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(39): note: while trying to match the argument list '(int, int)'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(37): error C2672: 'std::make_pair': no matching overloaded function found [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(39): error C2780: 'std::pair<_Unrefwrap_helper<decay<_Ty>::type>::type,_Unrefwrap_helper<decay<_Ty2>::type>::type> std::make_pair(_Ty1 &&,_Ty2 &&)': expects 2 arguments - 1 provided [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.16.27023\include\utility(402): note: see declaration of 'std::make_pair'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(40): error C3536: 'pair': cannot be used before it is initialized [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(40): error C2664: 'void std::vector<std::pair<int32_t,int32_t>,std::allocator<_Ty>>::push_back(_Ty &&)': cannot convert argument 1 from 'int' to 'const _Ty &' [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
          with
          [
              _Ty=std::pair<int32_t,int32_t>
          ]
  c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(40): note: Reason: cannot convert from 'int' to 'const _Ty'
          with
          [
              _Ty=std::pair<int32_t,int32_t>
          ]
  c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(40): note: No constructor could take the source type, or constructor overload resolution was ambiguous
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium.cc(91): error C2664: 'v8::String::Value::Value(const v8::String::Value &)': cannot convert argument 1 from 'v8::Local<v8::String>' to 'const v8::String::Value &' [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium.cc(91): note: Reason: cannot convert from 'v8::Local<v8::String>' to 'const v8::String::Value'
  c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium.cc(91): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium.cc(102): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:200:13)
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:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium
gyp ERR! node -v v12.4.0
@sontek
Copy link
Author

sontek commented Jun 21, 2019

Doesn't seem to work on v10 either:

[4/4] Building fresh packages...
success Saved 3 new dependencies.
info Direct dependencies
└─ node-pdfium@1.0.3
info All dependencies
├─ bindings@1.5.0
├─ file-uri-to-path@1.0.0
└─ node-pdfium@1.0.3
$ electron-builder install-app-deps
  • electron-builder version=20.43.0
  • loaded configuration file=package.json ("build" field)
  • rebuilding native production dependencies platform=win32 arch=x64
  • rebuilding native dependency name=node-pdfium
Error: C:\Program Files\nodejs\node.exe exited with code 1
Output:
yarn run v1.12.3
$ node-gyp rebuild

C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium>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 )  else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  Copying C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\x64/lib/pdfium.dll.lib to C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium/build/Release\pdfium.dll.lib
          1 file(s) copied.
  Copying C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\x64/bin/pdfium.dll to C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium/build/Release\pdfium.dll
          1 file(s) copied.
  pdfium_option.cc
  printer_win.cc
  pdfium_imp.cc
  pdfium.cc
  win_delay_load_hook.cc
c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(4458): warning C4996: 'v8::WasmModuleObject::SerializedModule': was declared deprecated (compiling source file ..\src\printer_win.cc)c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(4458): warning C4996: 'v8::WasmModuleObject::SerializedModule': was declared deprecated (compiling source file ..\src\pdfium
_option.cc) [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]

  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(4380): note: see declaration of 'v8::WasmModuleObject::SerializedModule' (compiling source file ..\src\printer_win.cc)c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(4380): note: see declaration of 'v8::WasmModuleObject::SerializedModule' (compiling source file ..\src\pdfium_option.cc)

c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(4458): warning C4996: 'v8::WasmModuleObject::SerializedModule': was declared deprecated (compiling source file ..\src\pdfium_imp.cc) [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(4380): note: see declaration of 'v8::WasmModuleObject::SerializedModule' (compiling source file ..\src\pdfium_imp.cc)
c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(4458): warning C4996: 'v8::WasmModuleObject::SerializedModule': was declared deprecated (compiling source file ..\src\pdfium.cc) [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(4380): note: see declaration of 'v8::WasmModuleObject::SerializedModule' (compiling source file ..\src\pdfium.cc)
c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(10172): warning C4996: 'v8::Value::ToBoolean': was declared deprecated (compiling source file ..\src\printer_win.cc) [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(2387): note: see declaration of 'v8::Value::ToBoolean' (compiling source file ..\src\printer_win.cc)
c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(10172): warning C4996: 'v8::Value::ToBoolean': was declared deprecated (compiling source file ..\src\pdfium_option.cc) [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(2387): note: see declaration of 'v8::Value::ToBoolean' (compiling source file ..\src\pdfium_option.cc)
c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(10172): warning C4996: 'v8::Value::ToBoolean': was declared deprecated (compiling source file ..\src\pdfium_imp.cc) [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(2387): note: see declaration of 'v8::Value::ToBoolean' (compiling source file ..\src\pdfium_imp.cc)
c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(10172): warning C4996: 'v8::Value::ToBoolean': was declared deprecated (compiling source file ..\src\pdfium.cc) [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(2387): note: see declaration of 'v8::Value::ToBoolean' (compiling source file ..\src\pdfium.cc)
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\printer_win.cc(8): warning C4996: 'v8::Value::ToString': was declared deprecated [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(10177): note: see declaration of 'v8::Value::ToString'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\printer_win.cc(10): warning C4996: 'v8::String::Value::Value': was declared deprecated [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(2918): note: see declaration of 'v8::String::Value::Value'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\printer_win.cc(16): warning C4996: 'v8::Value::ToString': was declared deprecated [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(10177): note: see declaration of 'v8::Value::ToString'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\printer_win.cc(20): warning C4996: 'v8::String::Value::Value': was declared deprecated [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(2918): note: see declaration of 'v8::String::Value::Value'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(20): error C2661: 'v8::Object::Has': no overloaded function takes 1 arguments [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(21): error C2661: 'v8::Object::Has': no overloaded function takes 1 arguments [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(22): error C2661: 'v8::Object::Has': no overloaded function takes 1 arguments [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(23): error C2661: 'v8::Object::Has': no overloaded function takes 1 arguments [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(27): error C2661: 'v8::Object::Has': no overloaded function takes 1 arguments [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(18): warning C4996: 'v8::Value::ToObject': was declared deprecated [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(10183): note: see declaration of 'v8::Value::ToObject'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium.cc(102): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium.cc(91): warning C4996: 'v8::String::Value::Value': was declared deprecated [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(2918): note: see declaration of 'v8::String::Value::Value'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium.cc(105): warning C4101: 'e': unreferenced local variable [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Error output:
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.16.0 | win32 | x64
gyp info spawn C:\Users\sonte\.windows-build-tools\python27\python.EXE
gyp info spawn args [ 'C:\\Program Files\\nodejs\\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   '-G',
gyp info spawn args   'msvs_version=2015',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\sonte\\Documents\\GitHub\\eventray_onsite\\node_modules\\node-pdfium\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\sonte\\.electron-gyp\\5.0.4\\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\\sonte\\.electron-gyp\\5.0.4',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\Users\\sonte\\.electron-gyp\\5.0.4\\<(target_arch)\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\sonte\\Documents\\GitHub\\eventray_onsite\\node_modules\\node-pdfium',
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\\sonte\\Documents\\GitHub\\eventray_onsite\\node_modules\\node-pdfium\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
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 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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Windows_NT 10.0.17763
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"
gyp ERR! cwd C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
error Command failed with exit code 1.

    at ChildProcess.childProcess.once.code (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\builder-util\src\util.ts:244:14)
    at Object.onceWrapper (events.js:286:20)
    at ChildProcess.emit (events.js:198:13)
    at maybeClose (internal/child_process.js:982:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
From previous event:
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
From previous event:
    at C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\app-builder-lib\src\util\yarn.ts:155:24
From previous event:
    at _rebuild (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\app-builder-lib\src\util\yarn.ts:179:5)
    at rebuild (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\app-builder-lib\out\util\yarn.js:163:19)
    at C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\app-builder-lib\src\util\yarn.ts:20:11
From previous event:
    at _installOrRebuild (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\app-builder-lib\out\util\yarn.js:71:28)
    at installOrRebuild (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\app-builder-lib\out\util\yarn.js:55:28)
    at C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\electron-builder\src\cli\install-app-deps.ts:59:9
    at Generator.next (<anonymous>)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
From previous event:
    at _installAppDeps (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\electron-builder\out\cli\install-app-deps.js:178:26)
    at installAppDeps (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\electron-builder\out\cli\install-app-deps.js:146:26)
    at then (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\electron-builder\src\cli\cli.ts:49:19)
error Command failed with exit code 1.

@renaesop
Copy link
Owner

Sorry,I just test it on node 8, and it works. I'll try fix it soon.

@renaesop
Copy link
Owner

@sontek you can try node-pdfium@1.0.4

@sontek
Copy link
Author

sontek commented Jun 23, 2019

Nice! It actually installed properly on node but when I try to rebuild it against the version electron uses I get this:

Error: C:\Program Files\nodejs\node.exe exited with code 1
Output:
yarn run v1.12.3
$ node-gyp rebuild

C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium>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 )  else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  Copying C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\x64/lib/pdfium.dll.lib to C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium/build/Release\pdfium.dll.lib
          1 file(s) copied.
  Copying C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\x64/bin/pdfium.dll to C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium/build/Release\pdfium.dll
          1 file(s) copied.
  pdfium_option.cc
  printer_win.cc
  pdfium_imp.cc
  pdfium.cc
  win_delay_load_hook.cc
c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(4458): warning C4996: 'v8::WasmModuleObject::SerializedModule': was declared deprecated (compiling source file ..\src\pdfium_option.cc) [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(4380): note: see declaration of 'v8::WasmModuleObject::SerializedModule' (compiling source file ..\src\pdfium_option.cc)
c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(4458): warning C4996: 'v8::WasmModuleObject::SerializedModule': was declared deprecated (compiling source file ..\src\printer_win.cc) [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(4458): warning C4996: 'v8::WasmModuleObject::SerializedModule': was declared deprecated (compiling source file ..\src\pdfium.cc) [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(4380): note: see declaration of 'v8::WasmModuleObject::SerializedModule' (compiling source file ..\src\printer_win.cc)
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(4380): note: see declaration of 'v8::WasmModuleObject::SerializedModule' (compiling source file ..\src\pdfium.cc)
c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(4458): warning C4996: 'v8::WasmModuleObject::SerializedModule': was declared deprecated (compiling source file ..\src\pdfium_imp.cc) [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(4380): note: see declaration of 'v8::WasmModuleObject::SerializedModule' (compiling source file ..\src\pdfium_imp.cc)
c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(10172): warning C4996: 'v8::Value::ToBoolean': was declared deprecated (compiling source file ..\src\pdfium_option.cc) [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(2387): note: see declaration of 'v8::Value::ToBoolean' (compiling source file ..\src\pdfium_option.cc)
c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(10172): warning C4996: 'v8::Value::ToBoolean': was declared deprecated (compiling source file ..\src\pdfium.cc) [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(2387): note: see declaration of 'v8::Value::ToBoolean' (compiling source file ..\src\pdfium.cc)
c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(10172): warning C4996: 'v8::Value::ToBoolean': was declared deprecated (compiling source file ..\src\printer_win.cc) [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(2387): note: see declaration of 'v8::Value::ToBoolean' (compiling source file ..\src\printer_win.cc)
c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(10172): warning C4996: 'v8::Value::ToBoolean': was declared deprecated (compiling source file ..\src\pdfium_imp.cc) [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(2387): note: see declaration of 'v8::Value::ToBoolean' (compiling source file ..\src\pdfium_imp.cc)
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(20): error C2661: 'v8::Object::Has': no overloaded function takes 1 arguments [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(21): error C2661: 'v8::Object::Has': no overloaded function takes 1 arguments [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(22): error C2661: 'v8::Object::Has': no overloaded function takes 1 arguments [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(23): error C2661: 'v8::Object::Has': no overloaded function takes 1 arguments [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(27): error C2661: 'v8::Object::Has': no overloaded function takes 1 arguments [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium_option.cc(18): warning C4996: 'v8::Value::ToObject': was declared deprecated [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(10183): note: see declaration of 'v8::Value::ToObject'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\printer_win.cc(8): warning C4996: 'v8::Value::ToString': was declared deprecated [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(10177): note: see declaration of 'v8::Value::ToString'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\printer_win.cc(10): warning C4996: 'v8::String::Value::Value': was declared deprecated [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(2918): note: see declaration of 'v8::String::Value::Value'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\printer_win.cc(16): warning C4996: 'v8::Value::ToString': was declared deprecated [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(10177): note: see declaration of 'v8::Value::ToString'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\printer_win.cc(20): warning C4996: 'v8::String::Value::Value': was declared deprecated [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(2918): note: see declaration of 'v8::String::Value::Value'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium.cc(102): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium.cc(91): warning C4996: 'v8::String::Value::Value': was declared deprecated [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
  c:\users\sonte\.electron-gyp\5.0.4\include\node\v8.h(2918): note: see declaration of 'v8::String::Value::Value'
c:\users\sonte\documents\github\eventray_onsite\node_modules\node-pdfium\src\pdfium.cc(105): warning C4101: 'e': unreferenced local variable [C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\build\pdfium.vcxproj]
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Error output:
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.16.0 | win32 | x64
gyp info spawn C:\Users\sonte\.windows-build-tools\python27\python.EXE
gyp info spawn args [ 'C:\\Program Files\\nodejs\\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   '-G',
gyp info spawn args   'msvs_version=2015',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\sonte\\Documents\\GitHub\\eventray_onsite\\node_modules\\node-pdfium\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\sonte\\.electron-gyp\\5.0.4\\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\\sonte\\.electron-gyp\\5.0.4',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\Users\\sonte\\.electron-gyp\\5.0.4\\<(target_arch)\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\sonte\\Documents\\GitHub\\eventray_onsite\\node_modules\\node-pdfium',
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\\sonte\\Documents\\GitHub\\eventray_onsite\\node_modules\\node-pdfium\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
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 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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Windows_NT 10.0.17763
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"
gyp ERR! cwd C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
error Command failed with exit code 1.

    at ChildProcess.childProcess.once.code (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\builder-util\src\util.ts:244:14)
    at Object.onceWrapper (events.js:286:20)
    at ChildProcess.emit (events.js:198:13)
    at maybeClose (internal/child_process.js:982:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
From previous event:
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
From previous event:
    at C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\app-builder-lib\src\util\yarn.ts:155:24
From previous event:
    at _rebuild (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\app-builder-lib\src\util\yarn.ts:179:5)
    at rebuild (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\app-builder-lib\out\util\yarn.js:163:19)
    at C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\app-builder-lib\src\util\yarn.ts:20:11
From previous event:
    at _installOrRebuild (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\app-builder-lib\out\util\yarn.js:71:28)
    at installOrRebuild (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\app-builder-lib\out\util\yarn.js:55:28)
    at C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\electron-builder\src\cli\install-app-deps.ts:58:9
    at Generator.next (<anonymous>)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
From previous event:
    at _installAppDeps (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\electron-builder\out\cli\install-app-deps.js:177:26)
    at installAppDeps (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\electron-builder\out\cli\install-app-deps.js:146:26)
    at then (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\electron-builder\src\cli\cli.ts:49:19)

@renaesop
Copy link
Owner

renaesop commented Jun 24, 2019

@sontek electron 5.0 correspond to node 12... And I should take a while to make it compatible with node 12
electron 4.0 or lower shall work

@sontek
Copy link
Author

sontek commented Jun 24, 2019

I'm willing to pay for your time to get it fixed up and working. I'm currently shelling out to Foxit PDF Reader to print and I'd love to do something in process :P

@renaesop
Copy link
Owner

renaesop commented Jun 24, 2019

@sontek you can try 2.0

@sontek
Copy link
Author

sontek commented Jun 24, 2019

Compiles on v12 =)

Currently getting this error:

 RESULT Promise {
[1]   <rejected> TypeError: Wrong type ofprinterName
[1]       at C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\lib\pdfium.js:14:20
[1]       at new Promise (<anonymous>)
[1]       at Object.printPDF (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\lib\pdfium.js:12:12)
[1]       at WriteStream.<anonymous> (C:\Users\sonte\Documents\GitHub\eventray_onsite\onsite\index.js:43:33)
[1]       at WriteStream.emit (events.js:199:15)
[1]       at finishMaybe (_stream_writable.js:646:14)
[1]       at _stream_writable.js:624:5
[1]       at WriteStream._final (internal/fs/streams.js:265:3)
[1]       at callFinal (_stream_writable.js:617:10)
[1]       at processTicksAndRejections (internal/process/task_queues.js:81:17) }
[1] (node:79240) UnhandledPromiseRejectionWarning: TypeError: Wrong type ofprinterName
[1]     at C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\lib\pdfium.js:14:20
[1]     at new Promise (<anonymous>)
[1]     at Object.printPDF (C:\Users\sonte\Documents\GitHub\eventray_onsite\node_modules\node-pdfium\lib\pdfium.js:12:12)
[1]     at WriteStream.<anonymous> (C:\Users\sonte\Documents\GitHub\eventray_onsite\onsite\index.js:43:33)
[1]     at WriteStream.emit (events.js:199:15)
[1]     at finishMaybe (_stream_writable.js:646:14)
[1]     at _stream_writable.js:624:5
[1]     at WriteStream._final (internal/fs/streams.js:265:3)
[1]     at callFinal (_stream_writable.js:617:10)
[1]     at processTicksAndRejections (internal/process/task_queues.js:81:17)
[1] (node:79240) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error

with this code:

          const result = pdfium.printPDF("TSC TTP-245C", filePath);

when I list the printers I get:

[1] available printers [ { name: 'TSC TTP-245C',
[1]     description: '',
[1]     status: 0,
[1]     isDefault: true,
[1]     options:
[1]      { 'printer-location': '',
[1]        'printer-make-and-model': 'TSC TTP-245C',
[1]        system_driverinfo: 'TSC TTP-245C;0.3.0.0;Seagull Printer Drivers;1.0.0' } },

@sontek
Copy link
Author

sontek commented Jun 24, 2019

@renaesop Is my error because the arguments don't line up in the same order here?

exports.printPDF = function printPDF({
pageList = [],
width = 0,
height = 0,
dpi = 324,
copies = 1,
filePath,
printerName,
}) {
return new Promise((resolve, reject) => {
try {
pdfium.printPDF(printerName, filePath, {

@sontek
Copy link
Author

sontek commented Jun 24, 2019

Also, is there a way to just use the printer settings rather than passing width/height/dpi and all that?

@sontek
Copy link
Author

sontek commented Jun 24, 2019

Documentation was just wrong, this works:

        pdfium.printPDF({
          printerName: 'TSC TTP-245C',
          filePath: filePath,
        });

So the only thing I'd like now is the ability to use printer settings so my app doesn't have to be customized. They can define page size and all that on the printer itself.

@sontek
Copy link
Author

sontek commented Jun 24, 2019

I also ran into issues running our app on OSX. You currently block anything but windows, is there a reason for that?

@sontek
Copy link
Author

sontek commented Jun 24, 2019

Can you release a new version where you define you only work on windows so I can mark you as an optional dependency

@renaesop
Copy link
Owner

Document has been fixed.

If you’d like to get printer settings, you can use the package “printer”.

Emmm... if you leave the page size away, it’ll use PDF’s intrinsic width and height.

@renaesop
Copy link
Owner

POSIX operating system use CUPS to print, and it supports PDF natively. So, only windows needs a library for printing PDF.

@sontek
Copy link
Author

sontek commented Jun 25, 2019

@renaesop The one that was giving me issues was dpi. It was messing up my printer unless I passed the DPI along with it. Can you leave that as default or do you have to pass it something?

@sontek
Copy link
Author

sontek commented Jun 25, 2019

@renaesop Do you have a preferred library you use on mac that interacts with CUPS from node.js?

@renaesop
Copy link
Owner

renaesop commented Jun 25, 2019

Windows gdi print api demands width/height in pixel, so the printer dpi is required.

If you want to get printer’s dpi, you can use the package “printer”.

Also, package “printer” provides a printFile — you can use it to print pdf on CUPS

@renaesop
Copy link
Owner

@sontek
Copy link
Author

sontek commented Jun 25, 2019

@renaesop Yeah, I just printer originally but it doesn't work on v12 either

$ node-gyp rebuild
  CXX(target) Release/obj.target/node_printer/src/node_printer_posix.o
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Error output:
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@11.12.0 | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [ '/usr/local/Cellar/node/11.12.0/libexec/lib/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   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/sontek/code/eventray_onsite/node_modules/printer/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/Cellar/node/11.12.0/libexec/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/sontek/.electron-gyp/5.0.4/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/sontek/.electron-gyp/5.0.4',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/Cellar/node/11.12.0/libexec/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/sontek/.electron-gyp/5.0.4/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/sontek/code/eventray_onsite/node_modules/printer',
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   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
In file included from ../src/node_printer_posix.cc:1:
../src/node_printer.hpp:121:39: error: no member named 'Handle' in namespace 'v8'
bool getStringOrBufferFromV8Value(v8::Handle<v8::Value> iV8Value, std::string &oData);
                                  ~~~~^
../src/node_printer.hpp:121:55: error: expected '(' for function-style cast or type construction
bool getStringOrBufferFromV8Value(v8::Handle<v8::Value> iV8Value, std::string &oData);
                                             ~~~~~~~~~^
../src/node_printer.hpp:121:57: error: use of undeclared identifier 'iV8Value'
bool getStringOrBufferFromV8Value(v8::Handle<v8::Value> iV8Value, std::string &oData);
                                                        ^
../src/node_printer.hpp:121:79: error: expected '(' for function-style cast or type construction
bool getStringOrBufferFromV8Value(v8::Handle<v8::Value> iV8Value, std::string &oData);
                                                                  ~~~~~~~~~~~ ^
../src/node_printer.hpp:121:80: error: use of undeclared identifier 'oData'
bool getStringOrBufferFromV8Value(v8::Handle<v8::Value> iV8Value, std::string &oData);
                                                                               ^
../src/node_printer_posix.cc:70:59: error: no template named 'Handle' in namespace 'v8'
    std::string parseJobObject(const cups_job_t *job, v8::Handle<v8::Object> result_printer_job)
                                                      ~~~~^
../src/node_printer_posix.cc:74:33: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
        result_printer_job->Set(V8_STRING_NEW_UTF8("id"), V8_VALUE_NEW(Number, job->id));
                                ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:75:33: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
        result_printer_job->Set(V8_STRING_NEW_UTF8("name"), V8_STRING_NEW_UTF8(job->title));
                                ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:75:61: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
        result_printer_job->Set(V8_STRING_NEW_UTF8("name"), V8_STRING_NEW_UTF8(job->title));
                                                            ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:76:33: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
        result_printer_job->Set(V8_STRING_NEW_UTF8("printerName"), V8_STRING_NEW_UTF8(job->dest));
                                ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:76:68: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
        result_printer_job->Set(V8_STRING_NEW_UTF8("printerName"), V8_STRING_NEW_UTF8(job->dest));
                                                                   ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:77:33: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
        result_printer_job->Set(V8_STRING_NEW_UTF8("user"), V8_STRING_NEW_UTF8(job->user));
                                ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:77:61: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
        result_printer_job->Set(V8_STRING_NEW_UTF8("user"), V8_STRING_NEW_UTF8(job->user));
                                                            ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:90:33: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
        result_printer_job->Set(V8_STRING_NEW_UTF8("format"), V8_STRING_NEW_UTF8(job_format.c_str()));
                                ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:90:63: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
        result_printer_job->Set(V8_STRING_NEW_UTF8("format"), V8_STRING_NEW_UTF8(job_format.c_str()));
                                                              ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:91:33: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
        result_printer_job->Set(V8_STRING_NEW_UTF8("priority"), V8_VALUE_NEW(Number, job->priority));
                                ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:92:33: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
        result_printer_job->Set(V8_STRING_NEW_UTF8("size"), V8_VALUE_NEW(Number, job->size));
                                ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:99:60: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
                result_printer_job_status->Set(i_status++, V8_STRING_NEW_UTF8(itStatus->first.c_str()));
                                                           ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:99:44: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
                result_printer_job_status->Set(i_status++, V8_STRING_NEW_UTF8(itStatus->first.c_str()));
                                           ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:3268:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATE_SOON("Use maybe version",
  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:322:29: note: expanded from macro 'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:109:56: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
            result_printer_job_status->Set(i_status++, V8_STRING_NEW_UTF8(s.str().c_str()));
                                                       ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:109:40: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
            result_printer_job_status->Set(i_status++, V8_STRING_NEW_UTF8(s.str().c_str()));
                                       ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:3268:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATE_SOON("Use maybe version",
  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:322:29: note: expanded from macro 'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:112:33: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
        result_printer_job->Set(V8_STRING_NEW_UTF8("status"), result_printer_job_status);
                                ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:116:33: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
        result_printer_job->Set(V8_STRING_NEW_UTF8("completedTime"), V8_VALUE_NEW(Date, job->completed_time*1000));
                                ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:116:70: error: no viable conversion from 'v8::Isolate *' to 'Local<v8::Context>'
        result_printer_job->Set(V8_STRING_NEW_UTF8("completedTime"), V8_VALUE_NEW(Date, job->completed_time*1000));
                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.hh:16:53: note: expanded from macro 'V8_VALUE_NEW'
#  define V8_VALUE_NEW(type, value)   v8::type::New(MY_NODE_MODULE_ISOLATE_PRE value)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.hh:12:39: note: expanded from macro 'MY_NODE_MODULE_ISOLATE_PRE'
#  define MY_NODE_MODULE_ISOLATE_PRE  isolate,
                                      ^~~~~~~
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:178:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::Isolate *' to 'const v8::Local<v8::Context> &' for 1st argument
class Local {
      ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:178:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::Isolate *' to 'v8::Local<v8::Context> &&' for 1st argument
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:182:13: note: candidate template ignored: could not match 'Local<type-parameter-0-0>' against 'v8::Isolate *'
  V8_INLINE Local(Local<S> that)
            ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:5231:69: note: passing argument to parameter 'context' here
  static V8_WARN_UNUSED_RESULT MaybeLocal<Value> New(Local<Context> context,
                                                                    ^
../src/node_printer_posix.cc:117:33: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
        result_printer_job->Set(V8_STRING_NEW_UTF8("creationTime"), V8_VALUE_NEW(Date, job->creation_time*1000));
                                ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:117:69: error: no viable conversion from 'v8::Isolate *' to 'Local<v8::Context>'
        result_printer_job->Set(V8_STRING_NEW_UTF8("creationTime"), V8_VALUE_NEW(Date, job->creation_time*1000));
                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.hh:16:53: note: expanded from macro 'V8_VALUE_NEW'
#  define V8_VALUE_NEW(type, value)   v8::type::New(MY_NODE_MODULE_ISOLATE_PRE value)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.hh:12:39: note: expanded from macro 'MY_NODE_MODULE_ISOLATE_PRE'
#  define MY_NODE_MODULE_ISOLATE_PRE  isolate,
                                      ^~~~~~~
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:178:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::Isolate *' to 'const v8::Local<v8::Context> &' for 1st argument
class Local {
      ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:178:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::Isolate *' to 'v8::Local<v8::Context> &&' for 1st argument
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:182:13: note: candidate template ignored: could not match 'Local<type-parameter-0-0>' against 'v8::Isolate *'
  V8_INLINE Local(Local<S> that)
            ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:5231:69: note: passing argument to parameter 'context' here
  static V8_WARN_UNUSED_RESULT MaybeLocal<Value> New(Local<Context> context,
                                                                    ^
../src/node_printer_posix.cc:118:33: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
        result_printer_job->Set(V8_STRING_NEW_UTF8("processingTime"), V8_VALUE_NEW(Date, job->processing_time*1000));
                                ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:118:71: error: no viable conversion from 'v8::Isolate *' to 'Local<v8::Context>'
        result_printer_job->Set(V8_STRING_NEW_UTF8("processingTime"), V8_VALUE_NEW(Date, job->processing_time*1000));
                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.hh:16:53: note: expanded from macro 'V8_VALUE_NEW'
#  define V8_VALUE_NEW(type, value)   v8::type::New(MY_NODE_MODULE_ISOLATE_PRE value)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
../src/macros.hh:12:39: note: expanded from macro 'MY_NODE_MODULE_ISOLATE_PRE'
#  define MY_NODE_MODULE_ISOLATE_PRE  isolate,
                                      ^~~~~~~
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:178:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::Isolate *' to 'const v8::Local<v8::Context> &' for 1st argument
class Local {
      ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:178:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::Isolate *' to 'v8::Local<v8::Context> &&' for 1st argument
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:182:13: note: candidate template ignored: could not match 'Local<type-parameter-0-0>' against 'v8::Isolate *'
  V8_INLINE Local(Local<S> that)
            ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:5231:69: note: passing argument to parameter 'context' here
  static V8_WARN_UNUSED_RESULT MaybeLocal<Value> New(Local<Context> context,
                                                                    ^
../src/node_printer_posix.cc:126:10: error: variable has incomplete type 'void'
    void populatePpdOptions(v8::Handle<v8::Object> ppd_options, ppd_file_t  *ppd, ppd_group_t *group)
         ^
../src/node_printer_posix.cc:126:33: error: no member named 'Handle' in namespace 'v8'
    void populatePpdOptions(v8::Handle<v8::Object> ppd_options, ppd_file_t  *ppd, ppd_group_t *group)
                            ~~~~^
../src/node_printer_posix.cc:126:50: error: expected '(' for function-style cast or type construction
    void populatePpdOptions(v8::Handle<v8::Object> ppd_options, ppd_file_t  *ppd, ppd_group_t *group)
                                       ~~~~~~~~~~^
../src/node_printer_posix.cc:126:52: error: use of undeclared identifier 'ppd_options'
    void populatePpdOptions(v8::Handle<v8::Object> ppd_options, ppd_file_t  *ppd, ppd_group_t *group)
                                                   ^
../src/node_printer_posix.cc:126:65: error: unexpected type name 'ppd_file_t': expected expression
    void populatePpdOptions(v8::Handle<v8::Object> ppd_options, ppd_file_t  *ppd, ppd_group_t *group)
                                                                ^
../src/node_printer_posix.cc:126:78: error: use of undeclared identifier 'ppd'
    void populatePpdOptions(v8::Handle<v8::Object> ppd_options, ppd_file_t  *ppd, ppd_group_t *group)
                                                                             ^
../src/node_printer_posix.cc:126:83: error: unexpected type name 'ppd_group_t': expected expression
    void populatePpdOptions(v8::Handle<v8::Object> ppd_options, ppd_file_t  *ppd, ppd_group_t *group)
                                                                                  ^
../src/node_printer_posix.cc:126:96: error: use of undeclared identifier 'group'
    void populatePpdOptions(v8::Handle<v8::Object> ppd_options, ppd_file_t  *ppd, ppd_group_t *group)
                                                                                               ^
../src/node_printer_posix.cc:126:102: error: expected ';' after top level declarator
    void populatePpdOptions(v8::Handle<v8::Object> ppd_options, ppd_file_t  *ppd, ppd_group_t *group)
                                                                                                     ^
                                                                                                     ;
../src/node_printer_posix.cc:284:21: error: use of undeclared identifier 'parsePrinterInfo'
        error_str = parsePrinterInfo(printer, result_printer);
                    ^
../src/node_printer_posix.cc:290:17: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
        result->Set(i, result_printer);
                ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:3268:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATE_SOON("Use maybe version",
  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:322:29: note: expanded from macro 'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:296:9: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
        RETURN_EXCEPTION_STR(error_str.c_str());
        ^
../src/macros.hh:24:54: note: expanded from macro 'RETURN_EXCEPTION_STR'
#  define RETURN_EXCEPTION_STR(msg) RETURN_EXCEPTION(V8_STRING_NEW_UTF8(msg))
                                                     ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:320:5: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
    REQUIRE_ARGUMENTS(iArgs, 1);
    ^
../src/macros.hh:61:8: note: expanded from macro 'REQUIRE_ARGUMENTS'
       RETURN_EXCEPTION_STR("Expected " #n " arguments");                       \
       ^
../src/macros.hh:24:54: note: expanded from macro 'RETURN_EXCEPTION_STR'
#  define RETURN_EXCEPTION_STR(msg) RETURN_EXCEPTION(V8_STRING_NEW_UTF8(msg))
                                                     ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:321:5: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
    REQUIRE_ARGUMENT_STRING(iArgs, 0, printername);
    ^
../src/macros.hh:91:5: note: expanded from macro 'REQUIRE_ARGUMENT_STRING'
    ARG_CHECK_STRING(args, i);                                                       \
    ^
../src/macros.hh:87:9: note: expanded from macro 'ARG_CHECK_STRING'
        RETURN_EXCEPTION_STR("Argument " #i " must be a string");                   \
        ^
../src/macros.hh:24:54: note: expanded from macro 'RETURN_EXCEPTION_STR'
#  define RETURN_EXCEPTION_STR(msg) RETURN_EXCEPTION(V8_STRING_NEW_UTF8(msg))
                                                     ^
../src/macros.hh:18:51: note: expanded from macro 'V8_STRING_NEW_UTF8'
#  define V8_STRING_NEW_UTF8(value)   v8::String::NewFromUtf8(MY_NODE_MODULE_ISOLATE_PRE value)
                                                  ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2785:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:321:5: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
    REQUIRE_ARGUMENT_STRING(iArgs, 0, printername);
    ^
../src/macros.hh:92:40: note: expanded from macro 'REQUIRE_ARGUMENT_STRING'
    v8::String::Utf8Value var(args[i]->ToString());
                                       ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2418:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/node_printer_posix.cc:321:39: warning: 'Utf8Value' is deprecated: Use Isolate version [-Wdeprecated-declarations]
    REQUIRE_ARGUMENT_STRING(iArgs, 0, printername);
                                      ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8.h:2893:5: note: 'Utf8Value' has been explicitly marked deprecated here
    V8_DEPRECATED("Use Isolate version",
    ^
/Users/sontek/.electron-gyp/5.0.4/include/node/v8config.h:307:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
25 warnings and 20 errors generated.
make: *** [Release/obj.target/node_printer/src/node_printer_posix.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/Cellar/node/11.12.0/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:197:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Darwin 18.0.0
gyp ERR! command "/usr/local/Cellar/node/11.12.0/bin/node" "/usr/local/Cellar/node/11.12.0/libexec/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/sontek/code/eventray_onsite/node_modules/printer
gyp ERR! node -v v11.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
error Command failed with exit code 1.

    at ChildProcess.childProcess.once.code (/Users/sontek/code/eventray_onsite/node_modules/builder-util/src/util.ts:244:14)
    at Object.onceWrapper (events.js:285:20)
    at ChildProcess.emit (events.js:197:13)
    at maybeClose (internal/child_process.js:988:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
From previous event:
    at processImmediate (timers.js:638:19)
From previous event:
    at /Users/sontek/code/eventray_onsite/node_modules/app-builder-lib/src/util/yarn.ts:155:24
From previous event:
    at _rebuild (/Users/sontek/code/eventray_onsite/node_modules/app-builder-lib/src/util/yarn.ts:179:5)
    at rebuild (/Users/sontek/code/eventray_onsite/node_modules/app-builder-lib/out/util/yarn.js:163:19)
    at /Users/sontek/code/eventray_onsite/node_modules/app-builder-lib/src/util/yarn.ts:20:11
From previous event:
    at _installOrRebuild (/Users/sontek/code/eventray_onsite/node_modules/app-builder-lib/out/util/yarn.js:71:28)
    at installOrRebuild (/Users/sontek/code/eventray_onsite/node_modules/app-builder-lib/out/util/yarn.js:55:28)
    at /Users/sontek/code/eventray_onsite/node_modules/electron-builder/src/cli/install-app-deps.ts:58:9
    at Generator.next (<anonymous>)
    at processImmediate (timers.js:638:19)
From previous event:
    at _installAppDeps (/Users/sontek/code/eventray_onsite/node_modules/electron-builder/out/cli/install-app-deps.js:177:26)
    at installAppDeps (/Users/sontek/code/eventray_onsite/node_modules/electron-builder/out/cli/install-app-deps.js:146:26)
    at then (/Users/sontek/code/eventray_onsite/node_modules/electron-builder/src/cli/cli.ts:49:19)
error Command failed with exit code 1.

@sontek
Copy link
Author

sontek commented Jun 25, 2019

@renaesop I think my point is that your library is the closest to a functional PDF printing library in the node.js community right now and since pdfium is crossplatform, if you let it work on OSX then people could just use it without doing the platform checks

@renaesop
Copy link
Owner

@sontek ok, I'll try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants