* Unfortunately I do not know what may be required to install on Mac
node-v18.12.1-x64.msi
Automatically install the necessary tools...
: Press and key to continue...
in order to install the necessary VS Tools to compile native modules. You MUST complete this. Type ENTER to exit:
. You are now ready to continue with the next step. Build Tools for Visual Studio 2022
installer (or whatever the current version shows today) from https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022 vs_BuildTools.exe
Desktop development with C++
checkbox Desktop development with C++
, in the Optional section leave everything that is already checked as is and then make sure MSVC v141 - VS 2017 C++...
(towards the bottom) is checked Install
and wait for the install to complete.C:\GTK
. (see here for more info)
resources
folder here: gtk+-bundle_2.22.1-20101229_win64.zip
https://github.com/GitMurf/help.git
IMPORTANT: You MUST follow steps 1 - 4 above before running the code below.
cd "CLONED-REPO-LOCAL-DIRECTORY\electron-pdf-node-canvas-help"
$env:npm_config_msvs_version = "2017"
npm install
npm run rebuild
After running npm run rebuild
you should see an error similar to the following Canvas.obj : error LNK2019: unresolved external symbol ... ArrayBuffer::GetBackingStore(void) ... Rebuild Failed
(also see screenshot). If you see a different error about GTK / Cairo
OR about error C2429: language feature 'terse static assert' requires compiler flag '/std:c++17'
then you likely did not follow the steps above correctly.)
Now you are as far as I have gotten and have the same error I am trying to troubleshoot and solve by converting node-canvas to use N-API instead of NAN.