Skip to content

Commit

Permalink
doc: blorb about setting npm_config_OPTION_NAME
Browse files Browse the repository at this point in the history
PR-URL: #1185
Fixes: #1180
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
refack authored and gibfahn committed May 14, 2017
1 parent ce815f9 commit c307b30
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,23 @@ Command Options
| `--solution=$solution` | Set Visual Studio Solution version (win)


Configuration
--------

__`node-gyp` responds to environment variables or `npm` configuration__
1. Environment variables take the form `npm_config_OPTION_NAME` for any of the
options listed above (dashes in option names should be replaced by underscores).
These work also when `node-gyp` is invoked directly:
`$ export npm_config_devdir=/tmp/.gyp`
or on Windows
`> set npm_config_devdir=c:\temp\.gyp`
2. As `npm` configuration, variables take the form `OPTION_NAME`.
This way only works when `node-gyp` is executed by `npm`:
`$ npm config set [--global] devdir /tmp/.gyp`
`$ npm i buffertools`



License
-------

Expand Down

0 comments on commit c307b30

Please sign in to comment.