title: Error with install canvas - on nextron boilerplate (electron + react)
body: <p>I use:<a href="https://github.com/saltyshiomix/nextron" rel="nofollow noreferrer">https://github.com/saltyshiomix/nextron</a>
  I want to install canvas. Via yarn add canvas. Unfortunately it gives an error. Any sure information on what I should do?</p>
  <p>I have tried in truth, in every way. I am using the first help, on stackoverflow. I am hoping that someone has been through the same thing. There is not one specific error so that I can do it myself. Thank you for your help. :)</p>
  <pre><code>PS C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron&gt; yarn add canvas
  yarn add v1.22.17
  warning ..\package.json: No license field
  warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
  [1/4] Resolving packages...
  warning electron-builder &gt; dmg-builder &gt; dmg-license@1.0.11: Disk image license agreements are deprecated by Apple and will probably be removed in a future macOS release. Discussion at: https://github.com/argv-minus-one/dmg-license/issues/11
  [2/4] Fetching packages...
  [3/4] Linking dependencies...
  [4/4] Building fresh packages...
  success Saved lockfile.
  success Saved 1 new dependency.
  info Direct dependencies
  └─ canvas@2.9.1
  info All dependencies
  └─ canvas@2.9.1
  $ electron-builder install-app-deps
    • electron-builder  version=23.0.3
    • loaded configuration  file=C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\electron-builder.yml
    • rebuilding native dependencies  dependencies=canvas@2.9.1, canvas@2.9.1 platform=win32 arch=x64
    • rebuilding native dependency  name=canvas version=2.9.1
    • rebuilding native dependency  name=canvas version=2.9.1
    ⨯ cannot execute  cause=exit status 1
  yarn run v1.22.17
  $ node-pre-gyp install --fallback-to-build
      Projekty w tym rozwi�zaniu s� kompilowane pojedynczo. Aby umo�liwi� kompilacj� r�wnoleg��, dodaj prze��cznik &quot;-m&quot;.
        Backend.cc
      c:\users\kulti\.electron-gyp\18.2.2\include\node\v8-traced-handle.h(240): error C2061: b��d sk�adniowy: identyfikator &quot;TracedGlobal&lt;`template-type-parameter-1'&gt;&quot; [C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas\build\canvas.vcxproj]
        c:\users\kulti\.electron-gyp\18.2.2\include\node\v8-traced-handle.h(335): note: zobacz odwo�anie do klasy klasa szablon; wyst�pienie &quot;v8::TracedGlobal&lt;T&gt;&quot; jest kompilowane
      c:\users\kulti\.electron-gyp\18.2.2\include\node\v8-traced-handle.h(240): error C2334: nieoczekiwany(e) token(y) poprzedzaj�ce &quot;:&quot;; pomijanie tre�ci widocznych funkcji [C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas\build\canvas.vcxproj]
      c:\users\kulti\.electron-gyp\18.2.2\include\node\v8-traced-handle.h(22): fatal error C1075: &quot;{&quot;: nie znaleziono zgodnego tokenu [C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas\build\canvas.vcxproj]
      Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\KULTI\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas\build\Release\canvas.node --module_name=canvas --module_path=C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas\build\Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v18.2' (1)
  info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  
  warning ..\..\..\..\..\package.json: No license field
      node-pre-gyp info it worked if it ends with ok
      node-pre-gyp info using node-pre-gyp@1.0.9
      node-pre-gyp info using node@16.15.0 | win32 | x64
      node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.9.1/canvas-v2.9.1-electron-v18.2-win32-unknown-x64.tar.gz
      node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.9.1/canvas-v2.9.1-electron-v18.2-win32-unknown-x64.tar.gz
      node-pre-gyp WARN Pre-built binaries not installable for canvas@2.9.1 and electron@18.2.2 (electron-v18.2 ABI, unknown) (falling back to source compile with node-gyp)
      node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.9.1/canvas-v2.9.1-electron-v18.2-win32-unknown-x64.tar.gz
      gyp info it worked if it ends with ok
      gyp info using node-gyp@9.0.0
      gyp info using node@16.15.0 | win32 | x64
      gyp info ok
      gyp info it worked if it ends with ok
      gyp info using node-gyp@9.0.0
      gyp info using node@16.15.0 | win32 | x64
      gyp info find Python using Python version 3.8.3 found at &quot;C:\Python38\python.exe&quot;
      gyp info find VS using VS2017 (15.9.28307.1093) found at:
      gyp info find VS &quot;C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools&quot;
      gyp info find VS run with --verbose for detailed information
      gyp info spawn C:\Python38\python.exe
      gyp info spawn args [
      gyp info spawn args   'C:\\Users\\KULTI\\AppData\\Roaming\\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\\KULTI\\Desktop\\PROJEKTY\\selectVideoTiktok_electron\\node_modules\\tiktok-scraper\\node_modules\\canvas\\build\\config.gypi',
      gyp info spawn args   '-I',
      gyp info spawn args   'C:\\Users\\KULTI\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi',
      gyp info spawn args   '-I',
      gyp info spawn args   'C:\\Users\\KULTI\\.electron-gyp\\18.2.2\\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\\KULTI\\.electron-gyp\\18.2.2',
      gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\KULTI\\AppData\\Roaming\\npm\\node_modules\\node-gyp',
      gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\KULTI\\\\.electron-gyp\\\\18.2.2\\\\&lt;(target_arch)\\\\node.lib',
      gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\KULTI\\Desktop\\PROJEKTY\\selectVideoTiktok_electron\\node_modules\\tiktok-scraper\\node_modules\\canvas',
      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\\KULTI\\Desktop\\PROJEKTY\\selectVideoTiktok_electron\\node_modules\\tiktok-scraper\\node_modules\\canvas\\build',
      gyp info spawn args   '-Goutput_dir=.'
      gyp info spawn args ]
      gyp info ok
      gyp info it worked if it ends with ok
      gyp info using node-gyp@9.0.0
      gyp info using node@16.15.0 | win32 | x64
      gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\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 ]
      gyp ERR! build error
      gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
      gyp ERR! stack     at ChildProcess.onExit (C:\Users\KULTI\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:194:23)
      gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
      gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
      gyp ERR! System Windows_NT 10.0.19044
      gyp ERR! command &quot;C:\\Program Files\\nodejs\\node.exe&quot; &quot;C:\\Users\\KULTI\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js&quot; &quot;build&quot; &quot;--fallback-to-build&quot; &quot;--module=C:\\Users\\KULTI\\Desktop\\PROJEKTY\\selectVideoTiktok_electron\\node_modules\\tiktok-scraper\\node_modules\\canvas\\build\\Release\\canvas.node&quot; &quot;--module_name=canvas&quot; &quot;--module_path=C:\\Users\\KULTI\\Desktop\\PROJEKTY\\selectVideoTiktok_electron\\node_modules\\tiktok-scraper\\node_modules\\canvas\\build\\Release&quot; &quot;--napi_version=8&quot; &quot;--node_abi_napi=napi&quot; &quot;--napi_build_version=0&quot; &quot;--node_napi_label=electron-v18.2&quot;
      gyp ERR! cwd C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas
      gyp ERR! node -v v16.15.0
      gyp ERR! node-gyp -v v9.0.0
      gyp ERR! not ok
      node-pre-gyp ERR! build error
      node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\KULTI\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas\build\Release\canvas.node --module_name=canvas --module_path=C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas\build\Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v18.2' (1)
      node-pre-gyp ERR! stack     at ChildProcess.&lt;anonymous&gt; (C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\@mapbox\node-pre-gyp\lib\util\compile.js:89:23)
      node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
      node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1092:16)
      node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
      node-pre-gyp ERR! System Windows_NT 10.0.19044
      node-pre-gyp ERR! command &quot;C:\\Program Files\\nodejs\\node.exe&quot; &quot;C:\\Users\\KULTI\\Desktop\\PROJEKTY\\selectVideoTiktok_electron\\node_modules\\@mapbox\\node-pre-gyp\\bin\\node-pre-gyp&quot; &quot;install&quot; &quot;--fallback-to-build&quot;
      node-pre-gyp ERR! cwd C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas
      node-pre-gyp ERR! node -v v16.15.0
      node-pre-gyp ERR! node-pre-gyp -v v1.0.9
      node-pre-gyp ERR! not ok
  error Command failed with exit code 1.
  
                      command='C:\Program Files\nodejs\node.exe' 'C:\Users\KULTI\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js' run install
                      workingDir=C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas
  error Command failed with exit code 1.
  info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
  </code></pre>