-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to minimum node-gyp 9.1 for build on Windows #28766
Labels
Comments
jennifer-shehane
added
OS: windows
process: contributing
Related to contributing to the Cypress codebase
labels
Jan 22, 2024
This comment was marked as outdated.
This comment was marked as outdated.
Cypress has made some progress towards The current minimum version used is
|
@MikeMcC399 I feel like this changes in our Electron 29 branch - there was some battles we were having with node-gyp but I can't remember where it landed. |
The minimum in branch https://github.com/cypress-io/cypress/tree/electron-29 is still |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
What would you like?
Enable building Cypress from source on Windows with node-gyp@9.1.0 or later when executing
yarn
on this repository according to CONTRIBUTING > Getting Started.Why is this needed?
node-gyp recommends for Windows:
Following on from issue node-gyp build error "missing any Windows SDK" #28703, in order to build Cypress from source on Windows 10 or Windows 11, the Windows 10 SDK of Visual Studio C++ environment must be installed. If the instructions from node-gyp are followed to the letter, then only the Windows 11 SDK is installed by default on Windows 10 or Windows 11. The Cypress build uses node-gyp@8.4.1 and fails with the error:
The workaround is to additionally install a Windows 10 SDK which allows
node-gyp
to recognize that Visual Studio is installed.A more solid resolution (as opposed to a workaround) is to allow building Cypress from source using a version of node-gyp@9.1.0 or higher which includes support for recognizing the presence of a Windows 11 SDK.
Other
The version of
node-gyp
used is not explicitly specified by Cypress. It is dependent on the versions of other npm modules installed such assemantic-release
andlerna
.Note that this enhancement request is not sufficient to support building with Python
3.12
. This would require a minimum of node-gyp@10.0.0 which takes care of the removal ofdistutils
in Python3.12
.The text was updated successfully, but these errors were encountered: