Skip to content

Commit

Permalink
doc: blorb about setting npm_config_XXXX
Browse files Browse the repository at this point in the history
  • Loading branch information
refack committed Apr 27, 2017
1 parent 4980171 commit 7ba637e
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)
They can be passed in two way:
1. via `npm config` - these work only when `node-gyp` is triggered by `npm`
e.g. `$ npm config set npm_config_devdir /tmp/.gyp`
2. as environment variables - work also when `noge-gyp` is invoked diretly
e.g. `c:\> set npm_config_devdir=c:\temp\.gyp`

License
-------

Expand Down

0 comments on commit 7ba637e

Please sign in to comment.