Dear all,
I have built an electron app by electron/rebuild (https://github.com/hintdesk/nodecompose). This app uses node-pty. When I start the app with
"start": "npm run build && electron ."
The app can be started but when I try to create a release with
"electron:build": "vite build && electron-builder build --win"
I receive this error
C:\Program Files\Microsoft Visual Studio\18\Professional\MSBuild\Microsoft\VC\v180\Microsoft.CppBuild.targets(524,5): error MSB8040: Spectre-mitigated libraries are required for this project. Install them from the Visual Studio installer (Individual components tab) for any toolsets and architectures being used. Learn more: https://aka.ms/Ofhn4c [C:\dev\n8n\nodecompose\node_modules\node-pty\build\conpty.vcxproj]
C:\Program Files\Microsoft Visual Studio\18\Professional\MSBuild\Microsoft\VC\v180\Microsoft.CppBuild.targets(524,5): error MSB8040: Spectre-mitigated libraries are required for this project. Install them from the Visual Studio installer (Individual components tab) for any toolsets and architectures being used. Learn more: https://aka.ms/Ofhn4c [C:\dev\n8n\nodecompose\node_modules\node-pty\build\conpty_console_list.vcxproj]
C:\Program Files\Microsoft Visual Studio\18\Professional\MSBuild\Microsoft\VC\v180\Microsoft.CppBuild.targets(524,5): error MSB8040: Spectre-mitigated libraries are required for this project. Install them from the Visual Studio installer (Individual components tab) for any toolsets and architectures being used. Learn more: https://aka.ms/Ofhn4c [C:\dev\n8n\nodecompose\node_modules\node-pty\build\deps\winpty\src\winpty-agent.vcxproj]
C:\Program Files\Microsoft Visual Studio\18\Professional\MSBuild\Microsoft\VC\v180\Microsoft.CppBuild.targets(524,5): error MSB8040: Spectre-mitigated libraries are required for this project. Install them from the Visual Studio installer (Individual components tab) for any toolsets and architectures being used. Learn more: https://aka.ms/Ofhn4c [C:\dev\n8n\nodecompose\node_modules\node-pty\build\deps\winpty\src\winpty.vcxproj]
Error: `C:\Program Files\Microsoft Visual Studio\18\Professional\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
at ChildProcess.<anonymous> (C:\dev\n8n\nodecompose\node_modules\@electron\rebuild\node_modules\node-gyp\lib\build.js:219:23)
at ChildProcess.emit (node:events:509:28)
at ChildProcess._handle.onexit (node:internal/child_process:295:12)
⨯ node-gyp failed to rebuild 'C:\dev\n8n\nodecompose\node_modules\node-pty' failedTask=build stackTrace=Error: node-gyp failed to rebuild 'C:\dev\n8n\nodecompose\node_modules\node-pty'
at ChildProcess.<anonymous> (file:///C:/dev/n8n/nodecompose/node_modules/@electron/rebuild/lib/module-type/node-gyp/node-gyp.js:120:24)
at ChildProcess.emit (node:events:509:28)
at ChildProcess._handle.onexit (node:internal/child_process:295:12)
I have installed MSVC v143 - VS 2022 C++ x64/x86 Spectre-mitigated libs (v14.44-17.14)
I'm using VS Studio 2026. Does anyone have an idea how to solve this problem? I would appreciate any help.
Thank you very much
Regards
Dear all,
I have built an electron app by electron/rebuild (https://github.com/hintdesk/nodecompose). This app uses node-pty. When I start the app with
The app can be started but when I try to create a release with
I receive this error
I have installed MSVC v143 - VS 2022 C++ x64/x86 Spectre-mitigated libs (v14.44-17.14)
I'm using VS Studio 2026. Does anyone have an idea how to solve this problem? I would appreciate any help.
Thank you very much
Regards