-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Fork of node-gyp-build breaks other packages (npm hangs silently) #584
Comments
Thanks for this summary! I'm pretty sure I've been running into this issue and was confounded, but after reading this it makes sense. I strongly agree that there should not be a dependency on a personal fork of a widely used package like node-gyp-build. I don't know the reasons of why a node-gyp-fork was used, the PR and commit that started using the fork don't explain why #536, but can the required fixes/changes be merged upstream? |
There is a reason for this fork. |
Is it just about logging output for npm commands? That doesn't seem like a good hill to die on. I know I wasted hours dealing with this bug due to the conflict of the package name breaking the install command when other packages rely on node-gyp. And I can't imagine it's worth maintaining a separate fork of node-gyp over log output. |
any updates on this? having the same issue |
continues to be an issue for us...and it's painfully unclear what the issue before finding this |
What's your environment setup? The fork was created because there were no logs when the prebuild was not used, resulting in many complaints and confusion. There were also critical bugs in node-gyp-build that were fixed in the fork. |
With commit
be4b5c68092fd5cf629ea83ab07a80f88e561e3b
first included in version6.0.0-beta.13
a custom fork ofnode-gyp-build
was introduced.The problem is that other packages independent of
zeromq.js
usenode-gyp-build
too.The original
node-gyp-build
and the fork@aminya/node-gyp-build
both register abin
with the same namenode-gyp-build
.See in package.json of
@aminya/node-gyp-build
:Symlinks created in
.bin
after installation.Now other packages (here examples from my project) cannot install anymore since their install fails with the modified
@aminya/node-gyp-build
:The problems manifests as
npm install
hanging endlessly while showing the log message of the previous installation step (even with log level silly). So its kind of hard to find/debug. If onlyzeromq.js
is installed it works fine, if only the other dependecy is installed it works fine. It also depends on the order in whichnpm
installs the packages which one fails.Suggested solutions:
Longterm: Please consider removing the fork and using the original again as it is in general not good practice. I guess this is obvious but i understand it was done for reasons.
Quick: A rename of the
bin
, e.g.node-gyp-build
->aminya-node-gyp-build
inpackage.json
should resolve the conflict.The
install
command inzeromq.js
could then be changed toFor now i stick with version <=
6.0.0-beta.11
ofzeromq.js
.Thank you for your work btw!
The text was updated successfully, but these errors were encountered: