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

Why use node-pre-gyp instead of node-gyp? #1714

Closed
AsteriskZuo opened this issue Aug 9, 2023 · 3 comments
Closed

Why use node-pre-gyp instead of node-gyp? #1714

AsteriskZuo opened this issue Aug 9, 2023 · 3 comments

Comments

@AsteriskZuo
Copy link

Summary

Why use node-pre-gyp instead of node-gyp? The node-pre-gyp uses the BSD license.

Proposed implementation

We need to carefully consider products under the BSD license.

@NoahAndrews
Copy link

What's wrong with the BSD license? This repository uses the BSD license as well.

@fcanela
Copy link

fcanela commented Oct 7, 2023

The problem shouldn't be the license, but that node-pre-gyp has no maintainer [1] and it is causing install problems to electron users that want to install this library [2]

[1] mapbox/node-pre-gyp#657
[2] mapbox/node-pre-gyp#661

@mdjaman
Copy link

mdjaman commented Nov 10, 2023

@fcanela Totally agree. 3 days still looking for a workaround

daniellockyer added a commit that referenced this issue Dec 24, 2023
…stall`

fixes #1641
fixes #1721
fixes #1714
fixes #1713
fixes #1700
fixes #1704

- `@mapbox/node-pre-gyp` is effectively unmaintained [1] as has a few bugs
  which our users keep running into
- it seems the prebuilt binary world has moved in favor of prebuild +
  it's various other forms
- one option would be to use prebuildify to bundle all binaries into the
  package, but that's a step too far removed from the current situation
  for now
- instead, we can use prebuild-install to download the binaries, and
  `prebuild` to build + upload the binaries
- this means we can remove node-pre-gyp and fix a bunch of issues!

[1]: mapbox/node-pre-gyp#657
daniellockyer added a commit that referenced this issue Dec 24, 2023
…stall`

fixes #1641
fixes #1721
fixes #1714
fixes #1713
fixes #1700
fixes #1704

- `@mapbox/node-pre-gyp` is effectively unmaintained [1] as has a few bugs
  which our users keep running into
- it seems the prebuilt binary world has moved in favor of prebuild +
  it's various other forms
- one option would be to use prebuildify to bundle all binaries into the
  package, but that's a step too far removed from the current situation
  for now
- instead, we can use prebuild-install to download the binaries, and
  `prebuild` to build + upload the binaries
- this means we can remove node-pre-gyp and fix a bunch of issues!
- eventually, we could start providing electron prebuilt binaries too

[1]: mapbox/node-pre-gyp#657
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants