Windows Build Environment
Running on Windows, VS Code is installed not Visual Studio.
... [snippet] ...
[email protected] postinstall electron-rebuild -f -w node-pty,better-sqlite3
⠦ Building module: node-pty, Completed: 1(node:57896) [DEP0060] DeprecationWarning: The util._extend API is deprecated. Please use Object.assign() instead.
(Use node --trace-deprecation ... to show where the warning was created)
✖ Rebuild Failed
An unhandled error occurred inside electron-rebuild node-gyp failed to rebuild 'E:\Scripting\Maestro\node_modules\node-pty'. For more information, rerun with the DEBUG environment variable set to "electron-rebuild".
Error: Could not find any Visual Studio installation to use
Error: node-gyp failed to rebuild 'E:\Scripting\Maestro\node_modules\node-pty'. For more information, rerun with the DEBUG environment variable set to "electron-rebuild".
Error: Could not find any Visual Studio installation to use at NodeGyp.rebuildModule (E:\Scripting\Maestro\node_modules\electron-rebuild\lib\src\module-type\node-gyp.js:120:19) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async ModuleRebuilder.rebuildNodeGypModule (E:\Scripting\Maestro\node_modules\electron-rebuild\lib\src\module-rebuilder.js:98:9) at async ModuleRebuilder.rebuild (E:\Scripting\Maestro\node_modules\electron-rebuild\lib\src\module-rebuilder.js:128:14) at async Rebuilder.rebuildModuleAt (E:\Scripting\Maestro\node_modules\electron-rebuild\lib\src\rebuild.js:149:13) at async Rebuilder.rebuild (E:\Scripting\Maestro\node_modules\electron-rebuild\lib\src\rebuild.js:112:17) at async E:\Scripting\Maestro\node_modules\electron-rebuild\lib\src\cli.js:158:9 npm error code 4294967295 npm error path E:\Scripting\Maestro npm error command failed
You're trying to build it or this is an error you're getting when your run the downloaded binary?
@pedramamini It was during the build process after downloading the repo
Not sure about that. I use GitHub actions to build the binary. Take a look at the environment there for building.
@stamandster if you do figure out the path forward, please do document it here so future folks who want to build locally can benefit. I'm flying blind on Windows/Linux builds here for the most part and leaning on the community to steer these right.
Much appreciated!
The Main issue is coming from electron-builder being built during install. U dont actually need Visual Studio, but u need the Build Tools.
Go to: https://my.visualstudio.com/Downloads?q=Visual%20Studio%202022
Login through Microsoft and Download:
Build Tools for Visual Studio 2022
In the Installer mark desktop development with c++ and install them.
Edit:
Also make sure u got Python3+ and Nodejs22 installed.
This should put everything in place, try to run npm ci or npx electron-rebuild in the PowerShell.
Just built it with Build Tools 2022 - Works fine.
Running the tool in dev (equivalent to npm run dev) is quite annoying on windows, but i got a workaround:
First run the build:
npm run build
then run the renderer (vite-server)
npm run dev:renderer
open a new PowerShell and run:
npm run build:prompts; npx tsc -p tsconfig.main.json; $env:NODE_ENV='development'; npx electron .
@chr1syy can I close this issue you think? Should I update the documentation with your notes from above?
I've documented the build process on windows here: BUILDING_WINDOWS.md
Merged from #248 (Windows Build Fails — Missing @rollup/rollup-win32-x64-msvc + SSH Path Expansion Issue)
Reported by @croakingtoad — two Windows build/setup issues:
1. Build failure — missing Rollup dependency:
Error: Cannot find module @rollup/rollup-win32-x64-msvc- Persists after removing
package-lock.json,node_modules, clearing npm cache - Tried
yarn,--legacy-peer-deps,--omit=optional— all failed - Environment: Windows 10/11, Node.js v22.13.0
2. SSH connection issue (secondary):
- SSH remote execution gives
Permission denied (publickey,password)even though manualssh -i ~/.ssh/id_ed25519 user@hostworks fine - Tried both
~/.ssh/id_ed25519andC:/Users/foo/.ssh/id_ed25519path formats
Both stem from the broader "building/running Maestro on Windows" problem tracked here.
Closing #248 as a duplicate of this issue.
Closing as patched in 0.15.1.