Skip to content

Commit 0e576f0

Browse files
jmannanczkat
authored andcommitted
config: fix no-proxy to noproxy (#46)
Fixes: https://npm.community/t/1327 PR-URL: #46 Credit: @sneakyfish5 Reviewed-By: @zkat
1 parent 4bd40f5 commit 0e576f0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

doc/misc/npm-config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ impact how lifecycle scripts are called.
692692

693693
The node version to use when checking a package's `engines` map.
694694

695-
### no-proxy
695+
### noproxy
696696

697697
* Default: null
698698
* Type: String or Array

lib/config/defaults.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Object.defineProperty(exports, 'defaults', {get: function () {
196196
'progress': !process.env.TRAVIS && !process.env.CI,
197197
proxy: null,
198198
'https-proxy': null,
199-
'no-proxy': null,
199+
'noproxy': null,
200200
'user-agent': 'npm/{npm-version} ' +
201201
'node/{node-version} ' +
202202
'{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

+1-1
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)