Skip to content

Commit

Permalink
doc: blorb about setting npm_config_OPTION_NAME
Browse files Browse the repository at this point in the history
Fixes: #1180
  • Loading branch information
refack committed Apr 28, 2017
1 parent 4980171 commit 8403816
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 8403816

Please sign in to comment.