-
Notifications
You must be signed in to change notification settings - Fork 175
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
need to upgrade node-gyp #1116
Comments
can confirm same issue, a temp fix is to include the latest |
Hi, I've tried the so-called temp fix by adding the devDependency in my package.json to the latest node-gyp but it's not getting used by electron-rebuild. Is there any other known workaround for this issue? |
As references in nodejs/node-gyp#2869 (comment), node-gyp v10+ solves this error; distutils was removed from python 3.12 as mentioned here, which causes this error. A way to fix this is to add an overrides to your In my case (using pnpm) on the highest level in my
Do this according to how your package manager handles overrides. If your package manager does not update correctly, check your lock file and confirm
EDIT: That is an integral part of the solution. I guess I'll see if I can cook up a PR to this project to resolve this issue. |
pip install setuptools or possibly python3 -m pip install --break-system-packages setuptools |
thx for temp fix actually |
Thanks, this solutions worked for me on windows |
This works for me. Thanks @verhovsky |
🎉 This issue has been resolved in version 3.7.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
distutils has been removed in Python v3.12. we need to upgrade version of node-gyp (to v10+)
The text was updated successfully, but these errors were encountered: