Description
Context
When someone runs npm install --some-option
to install a module that uses node-pre-gyp
, then node-pre-gyp
notices the arguments passed and forwards to node-gyp
(when a source compile is needed). The same thing is done when node-pre-gyp
is called directly (rather than via npm). This argument forwarding is critical to be able to control node-gyp
behavior directly (since modules that use node-pre-gyp
don't directly call node-gyp
, by design).
Problem
This argument passing works in all cases when arguments are passed directly to node-pre-gyp
. For example node-pre-gyp build --dist-url=foo
will result in a call to node-gyp build --dist-url=foo
.
And this argument passing works in all cases when arguments are passed to npm
and npm calls
node-pre-gyp
except on windows with npm 3.10.10. What I've seen is:
mac | linux | windows | |
---|---|---|---|
node v6/npm 3.10.10 | ✅ | ✅ | ❌ |
node v6/npm 2.15.11 (downgraded) | ✅ | ✅ | ✅ |
node v4/npm 2.15.11 | ✅ | ✅ | ✅ |
node v0.10/npm2.15.1 | ✅ | ✅ | ✅ |