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 2241896
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,22 @@ Command Options
| `--solution=$solution` | Set Visual Studio Solution version (win)


Configuration
--------

#### `node-gyp` responds to environment variables:
Variables take the form `npm_config_OPTION_NAME` for any of the options
listed above.<br>
They can be set in two ways:
1. as `npm` configuration - these work only when `node-gyp` is triggered by
`npm`. for example:<br>
`$ npm config set [--global] npm_config_devdir /tmp/.gyp`
2. as environment variables - these work also when `node-gyp` is invoked
directly:<br>
`> set npm_config_devdir=c:\temp\.gyp` for Windows or<br>
`$ export npm_config_devdir=/tmp/.gyp` for unix like environments


License
-------

Expand Down

0 comments on commit 2241896

Please sign in to comment.