Skip to content
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 10 for Ubuntu 24.* compatibility #30632

Closed
MikeMcC399 opened this issue Nov 17, 2024 · 3 comments
Closed

Update to minimum node-gyp 10 for Ubuntu 24.* compatibility #30632

MikeMcC399 opened this issue Nov 17, 2024 · 3 comments

Comments

@MikeMcC399
Copy link
Contributor

What would you like?

Enable building Cypress from source with node-gyp@10.0.0 or later when executing yarn on this repository according to CONTRIBUTING > Getting Started instructions.

Why is this needed?

See CONTRIBUTING > Requirements > Debian/Ubuntu

  1. Building Cypress from source on Ubuntu 24.04 LTS requires downgrading Python from built-in version 3.12 to 3.11
  2. Building Cypress from source error-free on the interim release Ubuntu 24.10 is not possible, since there is no downgrade option from the built-in Python 3.12.* version available

Under Python 3.12 rebuilding the following modules as part of yarn install

  • registry-js
  • cpu-features

fails with

ModuleNotFoundError: No module named 'distutils'

Other

The version of node-gyp used is not explicitly specified by Cypress. It is dependent on other npm modules installed (and potentially also on the version of Node.js used).

Updating packages/server to use the latest version @electron/rebuild@3.7.1 removes the dependency on node-gyp@9.0.0 and would resolve this request. node-gyp@10.2.0 is then used.

@MikeMcC399
Copy link
Contributor Author

@mschile mschile closed this as completed Nov 18, 2024
@MikeMcC399
Copy link
Contributor Author

MikeMcC399 commented Nov 24, 2024

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jan 16, 2025

Released in 14.0.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v14.0.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jan 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants