Skip to content

Arguments like --dist-url/--nodedir not respected with npm 3.10.10 #300

Open
@springmeyer

Description

@springmeyer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions