-
Notifications
You must be signed in to change notification settings - Fork 262
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
Arguments like --dist-url/--nodedir not respected with npm 3.10.10 #300
Comments
Looks like this bug also impacts npm 5.3.0 / node v8.4.0 on windows: https://ci.appveyor.com/project/Mapbox/node-pre-gyp/build/1.0.625/job/m02cx3p7chk0q4km#L53 And with those versions another problem manifests that looks like:
https://ci.appveyor.com/project/Mapbox/node-pre-gyp/build/1.0.625/job/m02cx3p7chk0q4km#L112 |
I dig into this a bit more and have figured out why the tests are failing, but not yet how to fix. Here is what I've learned:
The fact that it installs But it is the cause of the test failures. What happens is that the tests expect Here is the output of
/cc @mapsam |
Hoping this will fix 9361b44 https://ci.appveyor.com/project/Mapbox/node-pre-gyp/build/1.0.770 |
Context
When someone runs
npm install --some-option
to install a module that usesnode-pre-gyp
, thennode-pre-gyp
notices the arguments passed and forwards tonode-gyp
(when a source compile is needed). The same thing is done whennode-pre-gyp
is called directly (rather than via npm). This argument forwarding is critical to be able to controlnode-gyp
behavior directly (since modules that usenode-pre-gyp
don't directly callnode-gyp
, by design).Problem
This argument passing works in all cases when arguments are passed directly to
node-pre-gyp
. For examplenode-pre-gyp build --dist-url=foo
will result in a call tonode-gyp build --dist-url=foo
.And this argument passing works in all cases when arguments are passed to
npm
andnpm calls
node-pre-gyp
except on windows with npm 3.10.10. What I've seen is:The text was updated successfully, but these errors were encountered: