Description
Current behavior
Building Cypress 15.0.0
beta from source on Windows 11 with Visual Studio 2022 fails rebuilding dependency registry-js from dependency @cypress/[email protected].
(It also fails with Visual Studio 2019.)
Desired behavior
It should be possible to build Cypress 15.0.0
beta from source on Windows 11 with Visual Studio 2022 without error.
-
Cypress .node-version specifies the version of Node.js to be used with each version of Cypress.
-
Node.js BUILDING > Supported toolchains specifies the supported version of Visual Studio
Cypress version | .node-version | Node.js BUILDING |
---|---|---|
14.15.0 |
20.18.1 |
Visual Studio >= 2019 |
15.0.0 |
22.15.1 |
Visual Studio >= 2022 |
Test code to reproduce
On Windows 11:
git clone --branch release/15.0.0 https://github.com/cypress-io
cd cypress-io
yarn
Cypress Version
15.0.0
beta 992f894
Node version
v22.15.1
according to https://github.com/cypress-io/cypress/blob/release/15.0.0/.node-version
Operating System
Windows 11, 24H2
Debug Logs
warning Error running install script for optional dependency: "C:\\Users\\mikem\\github\\cypress-io\\cypress\\node_modules\\@cypress\\get-windows-proxy\\node_modules\\registry-js: Command failed.
Exit code: 1
Command: prebuild-install || node-gyp rebuild
Arguments:
Directory: C:\\Users\\mikem\\github\\cypress-io\\cypress\\node_modules\\@cypress\\get-windows-proxy\\node_modules\\registry-js
Output:
prebuild-install WARN install No prebuilt binaries found (target=22.15.1 runtime=node arch=x64 libc= platform=win32)
See also pipeline https://app.circleci.com/pipelines/github/cypress-io/cypress/72113/workflows/5cfbd530-041e-4fe7-bc2e-fada7e0e7748/jobs/2974389
"reinstall dependencies to work around cache issue (Windows only)"

Other
- Microsoft Visual Studio Community 2022 (64-bit) Version
17.14.8
- Python
3.13.5
Relates also to