electron-windows-notifications icon indicating copy to clipboard operation
electron-windows-notifications copied to clipboard

this node module is not compatible With electron v32

Open debchy opened this issue 1 year ago • 2 comments

While building with electron-builder, I am getting bellow error:

preparing       moduleName=@nodert-win10-au/windows.applicationmodel arch=x64
  ⨯ 
  _nodert_generated.cpp
C:\Users\..\.electron-gyp\32.0.2\include\node\v8config.h(13,1): error C1189: #error:  "C++20 or later required." [E:\..\node_modules\@nodert-win10-au\windows.applicationmodel\build\binding.vcxproj]
Error: `C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
    at ChildProcess.onExit (E:\..\node_modules\@electron\rebuild\node_modules\node-gyp\lib\build.js:203:23)
    at ChildProcess.emit (node:events:519:28)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12)


  ⨯ node-gyp failed to rebuild 'E:\..\node_modules\@nodert-win10-au\windows.applicationmodel'  failedTask=build stackTrace=Error: node-gyp failed to rebuild 'E:\..\node_modules\@nodert-win10-au\windows.applicationmodel'
    at ChildProcess.<anonymous> (E:\..\node_modules\@electron\rebuild\lib\module-type\node-gyp\node-gyp.js:118:24)
    at ChildProcess.emit (node:events:519:28)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12)

debchy avatar Sep 24 '24 09:09 debchy

the reason is the version of node is too high, you should downgrade the version to v20

brew install node@20

v22 is too higher

https://zoujiu.com.cn

https://nodejs.org/zh-cn/download/package-manager

ZouJiu1 avatar Dec 17 '24 13:12 ZouJiu1

the reason is the version of node is too high, you should downgrade the version to v20

brew install node@20

v22 is too higher

https://zoujiu.com.cn

https://nodejs.org/zh-cn/download/package-manager

But I am also using node v20.17.0

debchy avatar Dec 18 '24 05:12 debchy