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

fix: recommended node-gyp version in node.h error #37942

Merged

Conversation

RaisinTen
Copy link
Contributor

Backport of #37829.

See that PR for details.

Notes: Fix recommended node-gyp version in node.h error

fix: recommended node-gyp version in node.h error

In
https://github.com/electron/electron/blob/main/docs/tutorial/using-native-node-modules.md#using-npm,
we recommend setting the `npm_config_disturl` variable but doing that
does not work on node-gyp v8.4.0 because after
nodejs/node-gyp#2497
landed, the dist URL was read only from `gyp.opts['dist-url']`. The fix
for reading the value from `npm_config_disturl` by parsing
`gyp.opts.disturl` was landed in
nodejs/node-gyp#2547 and that change was
released in node-gyp v9.0.0, so this change updates the error macro to
recommend node-gyp v9.0.0 as the minimum required version.

Signed-off-by: Darshan Sen <raisinten@gmail.com>
@RaisinTen RaisinTen requested a review from a team as a code owner April 12, 2023 05:50
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Apr 12, 2023
@trop trop bot added 22-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Apr 12, 2023
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Apr 12, 2023
@codebytere codebytere merged commit ee668f1 into electron:22-x-y Apr 12, 2023
5 checks passed
@release-clerk
Copy link

release-clerk bot commented Apr 12, 2023

Release Notes Persisted

Fix recommended node-gyp version in node.h error

@RaisinTen RaisinTen deleted the 22-bp-recommended-node-gyp-version branch April 12, 2023 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
22-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants