Skip to content

Commit b5a7585

Browse files
committed
doc: blorb about setting npm_config_OPTION_NAME
Fixes: #1180
1 parent 4980171 commit b5a7585

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,17 @@ Command Options
192192
| `--solution=$solution` | Set Visual Studio Solution version (win)
193193

194194

195+
Configuration
196+
--------
197+
198+
#### `node-gyp` responds to configuration settings:
199+
Settings take the form `npm_config_OPTION_NAME` for any of the options listed above.
200+
They can be set in two ways:
201+
1. via `npm config` - these work only when `node-gyp` is triggered by `npm`
202+
e.g. `$ npm config set npm_config_devdir /tmp/.gyp`
203+
2. as environment variables - work also when `noge-gyp` is invoked diretly
204+
e.g. `c:\> set npm_config_devdir=c:\temp\.gyp`
205+
195206
License
196207
-------
197208

0 commit comments

Comments
 (0)