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


Configuration
--------

#### `node-gyp` responds to configuration settings:
Settings take the form `npm_config_OPTION_NAME` for any of the options listed above.<br>
They can be set in two ways:
1. via `npm config` - these work only when `node-gyp` is triggered by `npm`<br>
e.g. `$ npm config set npm_config_devdir /tmp/.gyp`
2. as environment variables - work also when `noge-gyp` is invoked diretly<br>
e.g. `c:\> set npm_config_devdir=c:\temp\.gyp`

License
-------

Expand Down

0 comments on commit a005142

Please sign in to comment.