Skip to content

Commit 0e0d581

Browse files
committed
config: fix no-proxy to noproxy
1 parent 14bd214 commit 0e0d581

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

doc/misc/npm-config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ impact how lifecycle scripts are called.
684684

685685
The node version to use when checking a package's `engines` map.
686686

687-
### no-proxy
687+
### noproxy
688688

689689
* Default: null
690690
* Type: String or Array

lib/config/defaults.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Object.defineProperty(exports, 'defaults', {get: function () {
195195
'progress': !process.env.TRAVIS && !process.env.CI,
196196
proxy: null,
197197
'https-proxy': null,
198-
'no-proxy': null,
198+
'noproxy': null,
199199
'user-agent': 'npm/{npm-version} ' +
200200
'node/{node-version} ' +
201201
'{platform} ' +
@@ -318,7 +318,7 @@ exports.types = {
318318
'metrics-registry': [null, String],
319319
'node-options': [null, String],
320320
'node-version': [null, semver],
321-
'no-proxy': [null, String, Array],
321+
'noproxy': [null, String, Array],
322322
offline: Boolean,
323323
'onload-script': [null, String],
324324
only: [null, 'dev', 'development', 'prod', 'production'],

lib/config/pacote.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function pacoteOpts (moreOpts) {
3838
preferOnline: npm.config.get('prefer-online') || npm.config.get('cache-max') <= 0,
3939
projectScope: npm.projectScope,
4040
proxy: npm.config.get('https-proxy') || npm.config.get('proxy'),
41-
noProxy: npm.config.get('no-proxy'),
41+
noProxy: npm.config.get('noproxy'),
4242
refer: npm.registry.refer,
4343
registry: npm.config.get('registry'),
4444
retry: {

0 commit comments

Comments
 (0)