Skip to content
Permalink
Browse files
config: fix no-proxy to noproxy (#46)
Fixes: https://npm.community/t/1327
PR-URL: #46
Credit: @SneakyFish5
Reviewed-By: @zkat
  • Loading branch information
SneakyFish5 authored and zkat committed Aug 20, 2018
1 parent 4bd40f5 commit 0e576f0aa6ea02653d948c10f29102a2d4a31944
Showing with 4 additions and 4 deletions.
  1. +1 −1 doc/misc/npm-config.md
  2. +2 −2 lib/config/defaults.js
  3. +1 −1 lib/config/pacote.js
@@ -692,7 +692,7 @@ impact how lifecycle scripts are called.

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

### no-proxy
### noproxy

* Default: null
* Type: String or Array
@@ -196,7 +196,7 @@ Object.defineProperty(exports, 'defaults', {get: function () {
'progress': !process.env.TRAVIS && !process.env.CI,
proxy: null,
'https-proxy': null,
'no-proxy': null,
'noproxy': null,
'user-agent': 'npm/{npm-version} ' +
'node/{node-version} ' +
'{platform} ' +
@@ -318,7 +318,7 @@ exports.types = {
'metrics-registry': [null, String],
'node-options': [null, String],
'node-version': [null, semver],
'no-proxy': [null, String, Array],
'noproxy': [null, String, Array],
offline: Boolean,
'onload-script': [null, String],
only: [null, 'dev', 'development', 'prod', 'production'],
@@ -38,7 +38,7 @@ function pacoteOpts (moreOpts) {
preferOnline: npm.config.get('prefer-online') || npm.config.get('cache-max') <= 0,
projectScope: npm.projectScope,
proxy: npm.config.get('https-proxy') || npm.config.get('proxy'),
noProxy: npm.config.get('no-proxy'),
noProxy: npm.config.get('noproxy'),
refer: npm.registry.refer,
registry: npm.config.get('registry'),
retry: {

0 comments on commit 0e576f0

Please sign in to comment.